diff options
author | Archit Taneja <archit@ti.com> | 2012-07-20 17:18:49 +0530 |
---|---|---|
committer | Archit Taneja <archit@ti.com> | 2012-08-16 18:00:55 +0530 |
commit | 889b4fd7eed2d7c155dc642e15a714f87ab2842c (patch) | |
tree | 5b70f29adae68d236d6b0336c09c45e068d2e102 /drivers/video/omap2/displays/panel-acx565akm.c | |
parent | c6b393d4bc8bc076589bf03433728c1fc2a44d4c (diff) | |
download | blackbird-op-linux-889b4fd7eed2d7c155dc642e15a714f87ab2842c.tar.gz blackbird-op-linux-889b4fd7eed2d7c155dc642e15a714f87ab2842c.zip |
OMAPDSS: SDI: Maintain copy of data pairs in driver data
The SDI driver currently relies on the omap_dss_device struct to configure the
number of data pairs as specified by the panel. This makes the SDI interface
driver dependent on the omap_dss_device struct.
Make the SDI driver data maintain it's own data lines field. A panel driver
is expected to call omapdss_sdi_set_datapairs() before enabling the interface.
Even though we configure the number of data pairs here, this function would be
finally mapped to a generic interface op called set_data_lines. The datapairs
argument type has been changed from u8 to int at some places to be in sync with
the 'set_data_lines' ops of other interfaces.
Signed-off-by: Archit Taneja <archit@ti.com>
Diffstat (limited to 'drivers/video/omap2/displays/panel-acx565akm.c')
-rw-r--r-- | drivers/video/omap2/displays/panel-acx565akm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/omap2/displays/panel-acx565akm.c b/drivers/video/omap2/displays/panel-acx565akm.c index 77fe59f6a8cd..c835aa70f96f 100644 --- a/drivers/video/omap2/displays/panel-acx565akm.c +++ b/drivers/video/omap2/displays/panel-acx565akm.c @@ -601,6 +601,7 @@ static int acx_panel_power_on(struct omap_dss_device *dssdev) mutex_lock(&md->mutex); omapdss_sdi_set_timings(dssdev, &dssdev->panel.timings); + omapdss_sdi_set_datapairs(dssdev, dssdev->phy.sdi.datapairs); r = omapdss_sdi_display_enable(dssdev); if (r) { |