diff options
author | Yakir Yang <ykk@rock-chips.com> | 2016-06-29 11:15:35 +0200 |
---|---|---|
committer | Yakir Yang <ykk@rock-chips.com> | 2016-07-05 15:53:38 +0200 |
commit | fcc150c5152d0c7aa3d37b77226e79ce5fc34cf8 (patch) | |
tree | d3cfd3d85c07c7318de52d88efaea1d063bb946a /drivers/gpu/drm/exynos/exynos_dp.c | |
parent | drm/rockchip: analogix_dp: make panel detect to an optional action (diff) | |
download | linux-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 'drivers/gpu/drm/exynos/exynos_dp.c')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_dp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_dp.c b/drivers/gpu/drm/exynos/exynos_dp.c index 4c1fb3f8b5a6..4f0850585b8e 100644 --- a/drivers/gpu/drm/exynos/exynos_dp.c +++ b/drivers/gpu/drm/exynos/exynos_dp.c @@ -67,10 +67,10 @@ static int exynos_dp_poweroff(struct analogix_dp_plat_data *plat_data) return exynos_dp_crtc_clock_enable(plat_data, false); } -static int exynos_dp_get_modes(struct analogix_dp_plat_data *plat_data) +static int exynos_dp_get_modes(struct analogix_dp_plat_data *plat_data, + struct drm_connector *connector) { struct exynos_dp_device *dp = to_dp(plat_data); - struct drm_connector *connector = dp->connector; struct drm_display_mode *mode; int num_modes = 0; |