diff options
| author | Archit Taneja <[email protected]> | 2016-02-12 14:48:33 +0530 |
|---|---|---|
| committer | Thierry Reding <[email protected]> | 2016-03-02 17:02:10 +0100 |
| commit | 509e42ce0441df39d5241150c1bec32cf6347b6c (patch) | |
| tree | b7ae16d69a1e450f695deede72aea64fa630fb2d /include | |
| parent | bf4363ce3a67ba06042351f40841ef4da9b30787 (diff) | |
drm/dsi: Add routine to unregister a DSI device
A driver calling mipi_dsi_device_register_full() might want to remove
the device once it's done. It might also require it in an error handling
path in case something went wrong.
Create mipi_dsi_device_unregister() for this purpose and use it within
mipi_dsi_remove_device_fn() as it does the same thing.
Reviewed-by: Andrzej Hajda <[email protected]>
Signed-off-by: Archit Taneja <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/drm/drm_mipi_dsi.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/drm_mipi_dsi.h b/include/drm/drm_mipi_dsi.h index a91411682e83..06e0a9382b35 100644 --- a/include/drm/drm_mipi_dsi.h +++ b/include/drm/drm_mipi_dsi.h @@ -210,6 +210,7 @@ static inline int mipi_dsi_pixel_format_to_bpp(enum mipi_dsi_pixel_format fmt) struct mipi_dsi_device * mipi_dsi_device_register_full(struct mipi_dsi_host *host, const struct mipi_dsi_device_info *info); +void mipi_dsi_device_unregister(struct mipi_dsi_device *dsi); struct mipi_dsi_device *of_find_mipi_dsi_device_by_node(struct device_node *np); int mipi_dsi_attach(struct mipi_dsi_device *dsi); int mipi_dsi_detach(struct mipi_dsi_device *dsi); |