drm/bridge: analogix: Do not use device's drvdata
The driver that instantiates the bridge should own the drvdata, as all driver model callbacks (probe, remove, shutdown, PM ops, etc.) are also owned by its driver struct. Moreover, storing two different pointer types in driver data depending on driver initialization status is barely a good practice and in fact has led to many bugs in this driver. Let's clean up this mess and change Analogix entry points to simply accept some opaque struct pointer, adjusting their users at the same time to avoid breaking the compilation. Signed-off-by: NTomasz Figa <tfiga@chromium.org> Signed-off-by: NJeffy Chen <jeffy.chen@rock-chips.com> Signed-off-by: NThierry Escande <thierry.escande@collabora.com> Reviewed-by: NAndrzej Hajda <a.hajda@samsung.com> Reviewed-by: NSean Paul <seanpaul@chromium.org> Acked-by: NJingoo Han <jingoohan1@gmail.com> Acked-by: NArchit Taneja <architt@codeaurora.org> Signed-off-by: NHeiko Stuebner <heiko@sntech.de> Link: https://patchwork.freedesktop.org/patch/msgid/20180110162348.22765-2-thierry.escande@collabora.com
Showing
想要评论请 注册 或 登录