drm: bridge: Return NULL on error from drm_bridge_get_edid()
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 26 May 2020 01:14:43 +0000 (04:14 +0300)
committerSam Ravnborg <sam@ravnborg.org>
Tue, 23 Jun 2020 17:52:11 +0000 (19:52 +0200)
commit11d3cf804591246bb5e09cb03cb30121eafc2f4c
tree142ab10feccee6854c0868d7e64f404b348a8ff6
parent0bae6020b800195c944e2d44c8a99c7d78b1c86a
drm: bridge: Return NULL on error from drm_bridge_get_edid()

The drm_bridge_get_edid() function is documented to return an error
pointer on error. The underlying .get_edid() operation, however, returns
NULL on error, and so do the drm_get_edid() and drm_do_get_edid()
functions upon which .get_edid() is usually implemented. Make
drm_bridge_get_edid() return NULL on error to be consistent.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200526011505.31884-6-laurent.pinchart+renesas@ideasonboard.com
drivers/gpu/drm/bridge/ti-tfp410.c
drivers/gpu/drm/drm_bridge.c