]> git.baikalelectronics.ru Git - kernel.git/commit
OMAPDSS: DSI: Remove dsi_pdev_map global struct
authorArchit Taneja <archit@ti.com>
Wed, 4 Jul 2012 08:18:34 +0000 (13:48 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 26 Sep 2012 11:58:34 +0000 (14:58 +0300)
commit3eb7258bb1b8e220fd587a18be2ac57c1ce3d714
treed6e99b339e9ee87b2a35ae70841899d630328ea3
parent343827f3c186ef687c994a5f0bcadde5f3a4d6bf
OMAPDSS: DSI: Remove dsi_pdev_map global struct

dsi_pdev_map is a struct visible globally in the DSI driver to get the platform
device pointer of the DSI device corresponding to it's module ID. This was
required because there was no clean way to derive the platform device from
the DSI module instance number or from the connected panel.

With the new output entity, it is possible to retrieve the platform device
pointer if the omap_dss_output pointer is available. Modify the functions
dsi_get_dsidev_from_dssdev() dsi_get_dsidev_from_id() so that they use output
instead of dsi_pdev_map to retrieve the dsi platform device pointer.

Signed-off-by: Archit Taneja <archit@ti.com>
drivers/video/omap2/dss/dsi.c