summaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/displays/panel-generic-dpi.c
diff options
context:
space:
mode:
authorArchit Taneja <archit@ti.com>2012-07-06 12:00:52 +0200
committerArchit Taneja <archit@ti.com>2012-08-16 14:30:55 +0200
commitc6b393d4bc8bc076589bf03433728c1fc2a44d4c (patch)
treebd7f95efe75d2117411e33bd7353921483e5e969 /drivers/video/omap2/displays/panel-generic-dpi.c
parentOMAPDSS: RFBI: Maintain copy of number of data lines in driver data (diff)
downloadlinux-c6b393d4bc8bc076589bf03433728c1fc2a44d4c.tar.xz
linux-c6b393d4bc8bc076589bf03433728c1fc2a44d4c.zip
OMAPDSS: DPI: Maintain copy of number of data lines in driver data
The DPI driver currently relies on the omap_dss_device struct to configure the number of data lines as specified by the panel. This makes the DPI interface driver dependent on the omap_dss_device struct. Make the DPI driver data maintain it's own data lines field. A panel driver is expected to call omapdss_dpi_set_data_lines() before enabling the interface. Signed-off-by: Archit Taneja <archit@ti.com>
Diffstat (limited to 'drivers/video/omap2/displays/panel-generic-dpi.c')
-rw-r--r--drivers/video/omap2/displays/panel-generic-dpi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/omap2/displays/panel-generic-dpi.c b/drivers/video/omap2/displays/panel-generic-dpi.c
index a07e18c8f71b..88295c526815 100644
--- a/drivers/video/omap2/displays/panel-generic-dpi.c
+++ b/drivers/video/omap2/displays/panel-generic-dpi.c
@@ -566,6 +566,7 @@ static int generic_dpi_panel_power_on(struct omap_dss_device *dssdev)
return 0;
omapdss_dpi_set_timings(dssdev, &dssdev->panel.timings);
+ omapdss_dpi_set_data_lines(dssdev, dssdev->phy.dpi.data_lines);
r = omapdss_dpi_display_enable(dssdev);
if (r)