drm/bridge: tc358767: fix opencoded use of drm_panel_*
authorSam Ravnborg <sam@ravnborg.org>
Sun, 4 Aug 2019 20:16:22 +0000 (22:16 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Sat, 10 Aug 2019 13:41:47 +0000 (15:41 +0200)
commit7bb0a60aa57818a9c49c5b4ec64e5f75581c369d
treefbd1194e18a2557889c647c372a0a21bdd13d885
parent0e1d8083bddb38b7169f6240905422f95d3c31b9
drm/bridge: tc358767: fix opencoded use of drm_panel_*

Replace open coded version with call to drm_panel_get_modes().

Include change to deal with the possible negative
return values from drm_panel_get_modes()

v2:
- Added more info to changelog (Philipp)

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Cc: Andrzej Hajda <a.hajda@samsung.com>
Cc: Neil Armstrong <narmstrong@baylibre.com>
Cc: Laurent Pinchart <Laurent.pinchart@ideasonboard.com>
Cc: Jonas Karlman <jonas@kwiboo.se>
Cc: Jernej Skrabec <jernej.skrabec@siol.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20190804201637.1240-2-sam@ravnborg.org
drivers/gpu/drm/bridge/tc358767.c