RE: [PATCH 08/10] video: da8xx-fb: obtain fb_videomode info from dt

From: Mohammed, Afzal
Date: Tue Jan 15 2013 - 08:59:31 EST


Hi Steffen,

On Mon, Jan 07, 2013 at 14:51:15, Mohammed, Afzal wrote:
> On Mon, Jan 07, 2013 at 14:41:31, Steffen Trumtrar wrote:
> > On Mon, Jan 07, 2013 at 10:41:30AM +0530, Afzal Mohammed wrote:

> > > +- display-timings: list of different videomodes supported by the lcd
> > > + panel, represented as childs, can have multiple modes supported, if
> > > + only one, then it is considered native mode, if multiple modes are
> > > + provided, native mode can be set explicitly, more details available
> > > + @Documentation/devicetree/bindings/video/display-timing.txt
>
> > Keep in mind that the text combined with...
>
> > > + if (of_get_fb_videomode(np, lcdc_info, 0)) {
> > > + dev_err(&dev->dev, "timings not available in DT\n");
> > > + return NULL;
> > > + }
> > > + return lcdc_info;
> > > + }
> >
> > ... this is not correct. You are just supporting the first display-timings
> > subnode (of_get_fb_videomode(..., 0)).
>
>
> Yes right, I will modify the text to reflect what the driver does.

Thinking about it further, it seems the right thing to do
in this case would be to invoke as,

"of_get_fb_videomode(np, lcd_info, OF_USE_NATIVE_MODE)".

Updated version has been posted to the lists (forgot to cc you)

Regards
Afzal

¢éì®&Þ~º&¶¬–+-±éÝ¥Šw®žË±Êâmébžìdz¹Þ)í…æèw*jg¬±¨¶‰šŽŠÝj/êäz¹ÞŠà2ŠÞ¨è­Ú&¢)ß«a¶Úþø®G«éh®æj:+v‰¨Šwè†Ù>Wš±êÞiÛaxPjØm¶Ÿÿà -»+ƒùdš_