summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorYakir Yang <ykk@rock-chips.com>2016-06-29 11:15:35 +0200
committerYakir Yang <ykk@rock-chips.com>2016-07-05 15:53:38 +0200
commitfcc150c5152d0c7aa3d37b77226e79ce5fc34cf8 (patch)
treed3cfd3d85c07c7318de52d88efaea1d063bb946a /include
parentdrm/rockchip: analogix_dp: make panel detect to an optional action (diff)
downloadlinux-fcc150c5152d0c7aa3d37b77226e79ce5fc34cf8.tar.xz
linux-fcc150c5152d0c7aa3d37b77226e79ce5fc34cf8.zip
drm/bridge: analogix_dp: passing the connector as an argument in .get_modes()
It's better to pass the connector to platform driver in .get_modes() callback, just like what the .get_modes() helper function designed. Signed-off-by: Yakir Yang <ykk@rock-chips.com> Reviewed-by: Sean Paul <seanpaul@chromium.org> Reviewed-by: Tomasz Figa <tomasz.figa@chromium.com>
Diffstat (limited to 'include')
-rw-r--r--include/drm/bridge/analogix_dp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/drm/bridge/analogix_dp.h b/include/drm/bridge/analogix_dp.h
index fc4aea39822d..261b86d20e77 100644
--- a/include/drm/bridge/analogix_dp.h
+++ b/include/drm/bridge/analogix_dp.h
@@ -34,7 +34,8 @@ struct analogix_dp_plat_data {
int (*power_off)(struct analogix_dp_plat_data *);
int (*attach)(struct analogix_dp_plat_data *, struct drm_bridge *,
struct drm_connector *);
- int (*get_modes)(struct analogix_dp_plat_data *);
+ int (*get_modes)(struct analogix_dp_plat_data *,
+ struct drm_connector *);
};
int analogix_dp_resume(struct device *dev);