drm/dsi: Get DSI host by DT device node
authorArchit Taneja <architt@codeaurora.org>
Fri, 12 Feb 2016 09:18:34 +0000 (14:48 +0530)
committerThierry Reding <treding@nvidia.com>
Wed, 2 Mar 2016 16:02:54 +0000 (17:02 +0100)
commit97b6ae50e05c533b6455e304d36bdf2bb5604ee6
tree9918354dad0852f0c3d0108e7c0e59b447cefab4
parent509e42ce0441df39d5241150c1bec32cf6347b6c
drm/dsi: Get DSI host by DT device node

MIPI DSI devices are inherently aware of their host because they share a
parent-child hierarchy in the device tree.

Non-DSI drivers that create DSI device don't have this data. In order to
get this information, they require to a phandle to the DSI host in the
device tree.

Maintain a list of all the DSI hosts that are currently registered. This
list will be used to find the struct mipi_dsi_host corresponding to the
device tree node passed to of_find_mipi_dsi_host_by_node().

Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/drm_mipi_dsi.c
include/drm/drm_mipi_dsi.h
This page took 0.025339 seconds and 5 git commands to generate.