mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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]
This commit is contained in:
parent
b706a25eae
commit
8242ecbd59
3 changed files with 33 additions and 34 deletions
|
|
@ -10,6 +10,8 @@
|
|||
#ifndef __DW_MIPI_DSI__
|
||||
#define __DW_MIPI_DSI__
|
||||
|
||||
struct dw_mipi_dsi;
|
||||
|
||||
struct dw_mipi_dsi_phy_ops {
|
||||
int (*init)(void *priv_data);
|
||||
int (*get_lane_mbps)(void *priv_data, struct drm_display_mode *mode,
|
||||
|
|
@ -29,11 +31,14 @@ struct dw_mipi_dsi_plat_data {
|
|||
void *priv_data;
|
||||
};
|
||||
|
||||
int dw_mipi_dsi_probe(struct platform_device *pdev,
|
||||
const struct dw_mipi_dsi_plat_data *plat_data);
|
||||
void dw_mipi_dsi_remove(struct platform_device *pdev);
|
||||
int dw_mipi_dsi_bind(struct platform_device *pdev, struct drm_encoder *encoder,
|
||||
const struct dw_mipi_dsi_plat_data *plat_data);
|
||||
void dw_mipi_dsi_unbind(struct device *dev);
|
||||
struct dw_mipi_dsi *dw_mipi_dsi_probe(struct platform_device *pdev,
|
||||
const struct dw_mipi_dsi_plat_data
|
||||
*plat_data);
|
||||
void dw_mipi_dsi_remove(struct dw_mipi_dsi *dsi);
|
||||
struct dw_mipi_dsi *dw_mipi_dsi_bind(struct platform_device *pdev,
|
||||
struct drm_encoder *encoder,
|
||||
const struct dw_mipi_dsi_plat_data
|
||||
*plat_data);
|
||||
void dw_mipi_dsi_unbind(struct dw_mipi_dsi *dsi);
|
||||
|
||||
#endif /* __DW_MIPI_DSI__ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue