[PATCH 1/2 v6] of: add helper to parse display timings

Thierry Reding thierry.reding at avionic-design.de
Fri Oct 12 06:31:18 EST 2012


On Mon, Oct 08, 2012 at 09:49:21AM +0200, Steffen Trumtrar wrote:
> On Mon, Oct 08, 2012 at 10:07:45AM +0300, Tomi Valkeinen wrote:
> > On Thu, 2012-10-04 at 19:59 +0200, Steffen Trumtrar wrote:
[...]
> > > +
> > > +	disp->num_timings = 0;
> > > +
> > > +	for_each_child_of_node(timings_np, entry) {
> > > +		disp->num_timings++;
> > > +	}
> > 
> > No need for { }
> > 
> 
> Okay.

Or you could just use of_get_child_count().

Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/devicetree-discuss/attachments/20121011/155b6671/attachment.sig>


More information about the devicetree-discuss mailing list