]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/bridge: tc358767: remove check for video mode in link enable
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 28 May 2019 08:27:40 +0000 (11:27 +0300)
committerAndrzej Hajda <a.hajda@samsung.com>
Fri, 31 May 2019 13:41:26 +0000 (15:41 +0200)
commit2792c152a84577eb7df569ce0ef92102ca2c8fdf
treea70279d6c4032e79c3ba759f08afcbf480c9c49d
parentf9538357760b08cd4c25eefa2d882adae3c9afb2
drm/bridge: tc358767: remove check for video mode in link enable

tc_main_link_enable() checks if videomode has been set, and fails if
there's no videomode. As tc_main_link_enable() no longer depends on the
videomode, we can drop the check.

Also, while tc_stream_enable() does depend on the videomode, we can
expect that a mode has been set before drm_bridge_funcs.enable is
called, so we don't need the check there either.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190528082747.3631-18-tomi.valkeinen@ti.com
drivers/gpu/drm/bridge/tc358767.c