]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
drm/mipi_dsi: Get DSI host by DT device node
authorArchit Taneja <architt@codeaurora.org>
Fri, 4 Sep 2015 10:30:55 +0000 (16:00 +0530)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 6 Apr 2018 06:06:53 +0000 (06:06 +0000)
commit51252402b2c1ade1aaeec11e5fa2848bc8f3d80f
tree441f4040f4d890f19f75a5fa78b514d06d8d8d1e
parentcef4f90029cde73ecf5857b1b8684b54caa771e5
drm/mipi_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 a dummy 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 hosts DSI that are currently registered.

This list will be used to find the mipi_dsi_host corresponding to the
device_node passed in of_find_mipi_dsi_host_by_node.

Signed-off-by: Archit Taneja <architt@codeaurora.org>
drivers/gpu/drm/drm_mipi_dsi.c
include/drm/drm_mipi_dsi.h