drm/bridge/synopsys: stop clobbering drvdata
authorBrian Norris <briannorris@chromium.org>
Tue, 28 Nov 2017 01:05:38 +0000 (17:05 -0800)
committerAndrzej Hajda <a.hajda@samsung.com>
Tue, 9 Jan 2018 13:34:38 +0000 (14:34 +0100)
commit8242ecbd597dac1375f6b80e0c0574189afc9a17
treeeebbb9c01db4eecac074d6b11e21065cfe5e5e94
parentb706a25eaed083a54afd113db86ee9747cc2f28b
drm/bridge/synopsys: stop clobbering drvdata

Bridge drivers/helpers shouldn't be clobbering the drvdata, since a
parent driver might need to own this. Instead, let's return our
'dw_mipi_dsi' object and have callers pass that back to us for removal.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Archit Taneja <architt@codeaurora.org>
Acked-by: Philippe Cornu <philippe.cornu@st.com>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171128010538.119114-1-briannorris@chromium.org
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
drivers/gpu/drm/stm/dw_mipi_dsi-stm.c
include/drm/bridge/dw_mipi_dsi.h