Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/dp_dual_mode: Pass drm_device to drm_dp_dual_mode_get_tmds_output()

Another function to pass drm_device * down to so we can start using the
drm_dbg_*() in the DRM DP helpers.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210423184309.207645-12-lyude@redhat.com
Reviewed-by: Dave Airlie <airlied@redhat.com>

+4 -3
+3 -2
drivers/gpu/drm/drm_dp_dual_mode_helper.c
··· 296 296 297 297 /** 298 298 * drm_dp_dual_mode_get_tmds_output - Get the state of the TMDS output buffers in the DP dual mode adaptor 299 + * @dev: &drm_device to use 299 300 * @type: DP dual mode adaptor type 300 301 * @adapter: I2C adapter for the DDC bus 301 302 * @enabled: current state of the TMDS output buffers ··· 311 310 * Returns: 312 311 * 0 on success, negative error code on failure 313 312 */ 314 - int drm_dp_dual_mode_get_tmds_output(enum drm_dp_dual_mode_type type, 315 - struct i2c_adapter *adapter, 313 + int drm_dp_dual_mode_get_tmds_output(const struct drm_device *dev, 314 + enum drm_dp_dual_mode_type type, struct i2c_adapter *adapter, 316 315 bool *enabled) 317 316 { 318 317 uint8_t tmds_oen;
+1 -1
include/drm/drm_dp_dual_mode_helper.h
··· 108 108 drm_dp_dual_mode_detect(const struct drm_device *dev, struct i2c_adapter *adapter); 109 109 int drm_dp_dual_mode_max_tmds_clock(const struct drm_device *dev, enum drm_dp_dual_mode_type type, 110 110 struct i2c_adapter *adapter); 111 - int drm_dp_dual_mode_get_tmds_output(enum drm_dp_dual_mode_type type, 111 + int drm_dp_dual_mode_get_tmds_output(const struct drm_device *dev, enum drm_dp_dual_mode_type type, 112 112 struct i2c_adapter *adapter, bool *enabled); 113 113 int drm_dp_dual_mode_set_tmds_output(const struct drm_device *dev, enum drm_dp_dual_mode_type type, 114 114 struct i2c_adapter *adapter, bool enable);