RE: [PATCH 2/7] leds-lm3530: add 'name' in lm3530_platform_data

From: Kim, Milo
Date: Tue Jan 24 2012 - 21:27:16 EST



-----Original Message-----
From: Linus Walleij [mailto:linus.walleij@xxxxxxxxxx]
Sent: Tuesday, January 24, 2012 4:09 AM
To: Kim, Milo
Cc: shreshthakumar.sahu@xxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx; rpurdie@xxxxxxxxx
Subject: Re: [PATCH 2/7] leds-lm3530: add 'name' in lm3530_platform_data

On Fri, Jan 20, 2012 at 2:47 AM, Kim, Milo <Milo.Kim@xxxxxx> wrote:

>> The led device name can be configurable.

> OK, why?

For example, there are two platforms with the lm3530.
In project A, the name of led is used as 'lcd-backlight'.
And in project B, the led name is set to 'lcd-bl'.
If an user-space accesses different name each project/platform, then lm3530 led name should be changed.

If the name can be configurable in the platform data, then no driver change needed.

Thanks & BR
Milo -

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/