]> git.karo-electronics.de Git - karo-tx-linux.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)
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 11 Jan 2016 09:54:42 +0000 (09:54 +0000)
commite1ccb3bfbba42d9e806589a61db65171fa3dd8a5
treeaa0255e7c73a5ce55b3f4177037cd1fb92060073
parent495cd2bd9c0920e4394d21a8c278bcf17c3aca97
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