On 2013-03-27 13:11, Archit Taneja wrote: > On Tuesday 26 March 2013 07:03 PM, Tomi Valkeinen wrote: >> Convert TFP410 driver from omap_dss_driver to a platform driver. The >> driver uses the new panel support from omapdss. >> >> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@xxxxxx> >> --- >> drivers/video/omap2/displays/panel-tfp410.c | 205 >> +++++++++++++++++---------- >> 1 file changed, 128 insertions(+), 77 deletions(-) >> >> - ddata->i2c_adapter = adapter; >> + dssdev = &ddata->dssdev; >> + dssdev->driver = &tfp410_driver; >> + dssdev->panel.timings = tfp410_default_timings; >> + dssdev->name = ddata->name; >> + dssdev->phy.dpi.data_lines = ddata->data_lines; >> + dssdev->panel_dev = &pdev->dev; > > Some of the omap_dss_device fields populated here(like data_lines) are > not going to be used anywhere. Are you populating all of them just for > the sake of clarity, so that they can be removed in another series later > on? Or is there some other reason? Unfortunately the datalines are used in omapdss_default_get_recommended_bpp(). So there are some fields populated just to keep things working, and I expect that they are removed later. Tomi
Attachment:
signature.asc
Description: OpenPGP digital signature