Re: [PATCH/RFC v10 03/19] DT: leds: Add led-sources property
From: Sakari Ailus <sakari.ailus@iki.fi>
Date: 2015-01-29 01:49:07
Also in:
linux-leds, linux-media, lkml
From: Sakari Ailus <sakari.ailus@iki.fi>
Date: 2015-01-29 01:49:07
Also in:
linux-leds, linux-media, lkml
On Wed, Jan 21, 2015 at 10:39:05AM +0100, Jacek Anaszewski wrote:
I agree. I think that led-sources-cnt is redundant. A list property can be read using of_prop_next_u32 function. I missed that and thus proposed putting led-sources-cnt in each sub-node to be able to read led-sources list with of_property_read_u32_array. Effectively, I propose to avoid adding led-sources-cnt property.
You can also read the array size using of_get_property(). -- Regards, Sakari Ailus e-mail: sakari.ailus@iki.fi XMPP: sailus@retiisi.org.uk