Re: [PATCH/RFC v10 03/19] DT: leds: Add led-sources property
From: Pavel Machek <hidden>
Date: 2015-01-20 17:40:17
Also in:
linux-leds, linux-media, lkml
From: Pavel Machek <hidden>
Date: 2015-01-20 17:40:17
Also in:
linux-leds, linux-media, lkml
On Tue 2015-01-20 11:29:16, Rob Herring wrote:
On Tue, Jan 20, 2015 at 10:09 AM, Jacek Anaszewski [off-list ref] wrote:quoted
On 01/16/2015 04:52 PM, Jacek Anaszewski wrote:quoted
On 01/16/2015 02:48 PM, Rob Herring wrote:[...]quoted
quoted
quoted
You may want to add something like led-output-cnt or led-driver-cnt in the parent so you know the max list size.Why should we need this? The number of current outputs exposed by the device is fixed and can be specified in a LED device bindings documentation.OK. The led-output-cnt property should be put in each sub-node, as the number of the current outputs each LED can be connected to is variable.Sorry, I meant this for the parent node meaning how many outputs the driver IC has. I did say maybe because you may always know this. It can make it easier to allocate memory for led-sources knowing the max size up front.
Umm. Not sure if that kind of "help" should go to the device tree. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html