summaryrefslogtreecommitdiff
path: root/include/drm/drm_mipi_dsi.h
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2016-06-03 12:23:00 (GMT)
committerThierry Reding <treding@nvidia.com>2016-06-13 08:45:57 (GMT)
commitbabb24fec12ce391157be8d7355df5a8e991355e (patch)
tree5340044631cdc1bfb2e6c2731b86c5306c920f25 /include/drm/drm_mipi_dsi.h
parent2a927623e864f98479c4be3c560ab8fbb0e0283c (diff)
downloadlinux-babb24fec12ce391157be8d7355df5a8e991355e.tar.xz
drm/dsi: Add uevent callback
Implement a uevent callback for devices on the MIPI DSI bus. This callback will append MODALIAS information to the uevent and allow modules to be loaded when devices are added to the bus. Reviewed-by: Archit Taneja <architt@codeaurora.org> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'include/drm/drm_mipi_dsi.h')
-rw-r--r--include/drm/drm_mipi_dsi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/drm_mipi_dsi.h b/include/drm/drm_mipi_dsi.h
index ec55285..72f5b15 100644
--- a/include/drm/drm_mipi_dsi.h
+++ b/include/drm/drm_mipi_dsi.h
@@ -180,6 +180,8 @@ struct mipi_dsi_device {
unsigned long mode_flags;
};
+#define MIPI_DSI_MODULE_PREFIX "mipi-dsi:"
+
static inline struct mipi_dsi_device *to_mipi_dsi_device(struct device *dev)
{
return container_of(dev, struct mipi_dsi_device, dev);