]> git.baikalelectronics.ru Git - kernel.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)
commit945e957a90a5a6959e4c92bc65f3b83f4e239006
tree2f120c440d6b07294f324d20e5b6b48cb4a63ea4
parent9ce47851e58a06a39f1e878928feb7eff836850f
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