drm/bridge: adv7511: Remove private copy of the EDID
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 5 Sep 2017 12:10:16 +0000 (14:10 +0200)
committerArchit Taneja <architt@codeaurora.org>
Sat, 16 Sep 2017 09:40:17 +0000 (15:10 +0530)
commitfcb4c5eee79ea17e1fbc5b3ebbd575d56714fabe
treefefbb1e9b6f70cb93ed37eb03c314630d37f7947
parent6f39ed4f0939e6bef722f0096894c1a986da9c9a
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
drivers/gpu/drm/bridge/adv7511/adv7511.h
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c