aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/bridge/adv7511/adv7511.h
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2017-09-05 14:10:16 +0200
committerArchit Taneja <architt@codeaurora.org>2017-09-16 15:10:17 +0530
commitfcb4c5eee79ea17e1fbc5b3ebbd575d56714fabe (patch)
treefefbb1e9b6f70cb93ed37eb03c314630d37f7947 /drivers/gpu/drm/bridge/adv7511/adv7511.h
parent6f39ed4f0939e6bef722f0096894c1a986da9c9a (diff)
downloadkernel_replicant_linux-fcb4c5eee79ea17e1fbc5b3ebbd575d56714fabe.tar.gz
kernel_replicant_linux-fcb4c5eee79ea17e1fbc5b3ebbd575d56714fabe.tar.bz2
kernel_replicant_linux-fcb4c5eee79ea17e1fbc5b3ebbd575d56714fabe.zip
drm/bridge: adv7511: Remove private copy of the EDID
The adv7511 driver keeps a private copy of the EDID in its driver state struct. But this copy is only used in adv7511_get_modes() where it is also retrieved, so there is no need to keep this extra copy around. If a need to access the EDID elsewhere in the driver ever arises the copy that is stored in the connector can be used. This copy is accessible through drm_connector_get_edid(). Note, this patch removes the NULL check of the EDID before passing it to drm_detect_hdmi_monitor(), but that is fine since the function correctly handles the case where the EDID is NULL. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Tested-by: John Stultz <john.stultz@linaro.org> Signed-off-by: Archit Taneja <architt@codeaurora.org> Link: https://patchwork.freedesktop.org/patch/msgid/20170905121018.11477-2-lars@metafoo.de
Diffstat (limited to 'drivers/gpu/drm/bridge/adv7511/adv7511.h')
-rw-r--r--drivers/gpu/drm/bridge/adv7511/adv7511.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511.h b/drivers/gpu/drm/bridge/adv7511/adv7511.h
index fe18a5d2d84b..12ef2d8ee110 100644
--- a/drivers/gpu/drm/bridge/adv7511/adv7511.h
+++ b/drivers/gpu/drm/bridge/adv7511/adv7511.h
@@ -328,8 +328,6 @@ struct adv7511 {
enum adv7511_sync_polarity hsync_polarity;
bool rgb;
- struct edid *edid;
-
struct gpio_desc *gpio_pd;
struct regulator_bulk_data *supplies;