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>
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user