Commit a117f3de authored by Lyude Paul's avatar Lyude Paul

drm/dp_dual_mode: Pass drm_device to drm_dp_dual_mode_max_tmds_clock()

Another function we need to pass drm_device down to in order to start using
drm_dbg_*().
Signed-off-by: default avatarLyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210423184309.207645-11-lyude@redhat.comReviewed-by: default avatarDave Airlie <airlied@redhat.com>
parent c235509a
...@@ -252,6 +252,7 @@ EXPORT_SYMBOL(drm_dp_dual_mode_detect); ...@@ -252,6 +252,7 @@ EXPORT_SYMBOL(drm_dp_dual_mode_detect);
/** /**
* drm_dp_dual_mode_max_tmds_clock - Max TMDS clock for DP dual mode adaptor * drm_dp_dual_mode_max_tmds_clock - Max TMDS clock for DP dual mode adaptor
* @dev: &drm_device to use
* @type: DP dual mode adaptor type * @type: DP dual mode adaptor type
* @adapter: I2C adapter for the DDC bus * @adapter: I2C adapter for the DDC bus
* *
...@@ -265,7 +266,7 @@ EXPORT_SYMBOL(drm_dp_dual_mode_detect); ...@@ -265,7 +266,7 @@ EXPORT_SYMBOL(drm_dp_dual_mode_detect);
* Returns: * Returns:
* Maximum supported TMDS clock rate for the DP dual mode adaptor in kHz. * Maximum supported TMDS clock rate for the DP dual mode adaptor in kHz.
*/ */
int drm_dp_dual_mode_max_tmds_clock(enum drm_dp_dual_mode_type type, int drm_dp_dual_mode_max_tmds_clock(const struct drm_device *dev, enum drm_dp_dual_mode_type type,
struct i2c_adapter *adapter) struct i2c_adapter *adapter)
{ {
uint8_t max_tmds_clock; uint8_t max_tmds_clock;
......
...@@ -2255,7 +2255,7 @@ intel_hdmi_dp_dual_mode_detect(struct drm_connector *connector, bool has_edid) ...@@ -2255,7 +2255,7 @@ intel_hdmi_dp_dual_mode_detect(struct drm_connector *connector, bool has_edid)
hdmi->dp_dual_mode.type = type; hdmi->dp_dual_mode.type = type;
hdmi->dp_dual_mode.max_tmds_clock = hdmi->dp_dual_mode.max_tmds_clock =
drm_dp_dual_mode_max_tmds_clock(type, adapter); drm_dp_dual_mode_max_tmds_clock(&dev_priv->drm, type, adapter);
drm_dbg_kms(&dev_priv->drm, drm_dbg_kms(&dev_priv->drm,
"DP dual mode adaptor (%s) detected (max TMDS clock: %d kHz)\n", "DP dual mode adaptor (%s) detected (max TMDS clock: %d kHz)\n",
......
...@@ -106,7 +106,7 @@ enum drm_dp_dual_mode_type { ...@@ -106,7 +106,7 @@ enum drm_dp_dual_mode_type {
enum drm_dp_dual_mode_type enum drm_dp_dual_mode_type
drm_dp_dual_mode_detect(const struct drm_device *dev, struct i2c_adapter *adapter); drm_dp_dual_mode_detect(const struct drm_device *dev, struct i2c_adapter *adapter);
int drm_dp_dual_mode_max_tmds_clock(enum drm_dp_dual_mode_type type, int drm_dp_dual_mode_max_tmds_clock(const struct drm_device *dev, enum drm_dp_dual_mode_type type,
struct i2c_adapter *adapter); struct i2c_adapter *adapter);
int drm_dp_dual_mode_get_tmds_output(enum drm_dp_dual_mode_type type, int drm_dp_dual_mode_get_tmds_output(enum drm_dp_dual_mode_type type,
struct i2c_adapter *adapter, bool *enabled); struct i2c_adapter *adapter, bool *enabled);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment