drm/bridge/synopsys: stop clobbering drvdata
authorBrian Norris <[email protected]>
Tue, 28 Nov 2017 01:05:38 +0000 (17:05 -0800)
committerAndrzej Hajda <[email protected]>
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 <[email protected]>
Reviewed-by: Matthias Kaehlcke <[email protected]>
Reviewed-by: Archit Taneja <[email protected]>
Acked-by: Philippe Cornu <[email protected]>
Signed-off-by: Andrzej Hajda <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
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