[lkml]   [2015]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] led/led-class: Handle LEDs with the same name

On Wed, Feb 18, 2015 at 2:36 AM, Bryan Wu <> wrote:

> I got it. In this case we need to give the leds device a unique name.
> Go back to your patch, you're adding 0, 1 at the end of the name of
> leds. It's better like GPIO I think you can pick up <reg> value of
> leds device node and put it in front of the name of leds. like
> /sys/class/leds/ and /sys/class/leds/

Hmmm.... That will not solve the issue for every device.

If I had a mmio, the gpio would be located at


Also it could be the case where the gpio is not memory mapped, then it
would be something like:


And at any case we should respect the old api, we can only rename the
second device, not the first one.

What is your concern about the initial proposal? What about NAME_dup0
instead of NAME_0?

We could throw a dev_info(), so the system developer will have a
chance to fix it (if he can) and the user to ignore it safely.


Ricardo Ribalda

 \ /
  Last update: 2015-02-18 08:01    [W:0.060 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site