]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/omap: dss: Move connection checks to omapdss_device_(dis)connect
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sat, 26 May 2018 17:25:10 +0000 (20:25 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 3 Sep 2018 13:13:28 +0000 (16:13 +0300)
commit79ddb2f0c348e991edca106a0e5ab414a822ccfc
tree2f120c440d6b07294f324d20e5b6b48cb4a63ea4
parent511afb44d72aa7b6b871fa71f829afaaa27e84f0
drm/omap: dss: Move connection checks to omapdss_device_(dis)connect

When a DSS output is (dis)connected the omapdss_output_(un)set_device()
function performs a sanity check to ensure that the output isn't already
(dis)connected. The check is unnecessary as those situations should
never happen, but can nonetheless be useful to catch driver bugs. To
prepare for removal of the omapdss_output_(un)set_device() functions
move the connection check to the omapdss_device_connect() function. The
omapdss_device_disconnect() already contains a corresponding check.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/dss/base.c
drivers/gpu/drm/omapdrm/dss/output.c