mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00

For historical reasons a lot of symbols in the MSM DisplayPort driver used the generic dp_ prefix. Perform a mass-rename of those symbols to use msm_dp prefix. Basically this is a result of the following script: sed drivers/gpu/drm/msm/dp/* -i -e 's/\<dp_/msm_dp_/g' sed drivers/gpu/drm/msm/dp/* -i -e 's/"msm_dp_/"dp_/g' sed drivers/gpu/drm/msm/dp/* -i -e 's/msm_\(dp_sdp_header\|dp_sdp\)\>/\1/g' Yes, this also results in renaming of several struct fields in addition to renaming the structs and functions, but I think the simple solution is better than the more complex one. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202410250305.UHKDhtxy-lkp@intel.com/ Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Patchwork: https://patchwork.freedesktop.org/patch/622211/ Link: https://lore.kernel.org/r/20241029-msm-dp-rename-v2-1-13c5c03fad44@linaro.org
46 lines
1.5 KiB
C
46 lines
1.5 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef _DP_DRM_H_
|
|
#define _DP_DRM_H_
|
|
|
|
#include <linux/types.h>
|
|
#include <drm/drm_bridge.h>
|
|
|
|
#include "msm_drv.h"
|
|
#include "dp_display.h"
|
|
|
|
struct msm_dp_bridge {
|
|
struct drm_bridge bridge;
|
|
struct msm_dp *msm_dp_display;
|
|
};
|
|
|
|
#define to_dp_bridge(x) container_of((x), struct msm_dp_bridge, bridge)
|
|
|
|
struct drm_connector *msm_dp_drm_connector_init(struct msm_dp *msm_dp_display,
|
|
struct drm_encoder *encoder);
|
|
int msm_dp_bridge_init(struct msm_dp *msm_dp_display, struct drm_device *dev,
|
|
struct drm_encoder *encoder,
|
|
bool yuv_supported);
|
|
|
|
void msm_dp_bridge_atomic_enable(struct drm_bridge *drm_bridge,
|
|
struct drm_bridge_state *old_bridge_state);
|
|
void msm_dp_bridge_atomic_disable(struct drm_bridge *drm_bridge,
|
|
struct drm_bridge_state *old_bridge_state);
|
|
void msm_dp_bridge_atomic_post_disable(struct drm_bridge *drm_bridge,
|
|
struct drm_bridge_state *old_bridge_state);
|
|
enum drm_mode_status msm_dp_bridge_mode_valid(struct drm_bridge *bridge,
|
|
const struct drm_display_info *info,
|
|
const struct drm_display_mode *mode);
|
|
void msm_dp_bridge_mode_set(struct drm_bridge *drm_bridge,
|
|
const struct drm_display_mode *mode,
|
|
const struct drm_display_mode *adjusted_mode);
|
|
void msm_dp_bridge_hpd_enable(struct drm_bridge *bridge);
|
|
void msm_dp_bridge_hpd_disable(struct drm_bridge *bridge);
|
|
void msm_dp_bridge_hpd_notify(struct drm_bridge *bridge,
|
|
enum drm_connector_status status);
|
|
|
|
#endif /* _DP_DRM_H_ */
|