diff options
author | 2012-03-23 15:02:08 -0700 | |
---|---|---|
committer | 2012-03-23 16:58:34 -0700 | |
commit | 5ae4e8a77dc82afcfe8460168ec0b94f4b79a54a (patch) | |
tree | 563eb3978832bff9e989b9cc7aa12b3da3f2fa20 /Documentation/leds | |
parent | drivers/leds/leds-tca6507.c: remove obsolete cleanup for clientdata (diff) | |
download | wireguard-linux-5ae4e8a77dc82afcfe8460168ec0b94f4b79a54a.tar.xz wireguard-linux-5ae4e8a77dc82afcfe8460168ec0b94f4b79a54a.zip |
drivers/leds/leds-lp5521.c: add 'name' in the lp5521_led_config
The name of each led channel can be configurable. For the compatibility,
the name is set to default value(xx:channelN) when 'name' is not defined.
Signed-off-by: Milo(Woogyom) Kim <[email protected]>
Acked-by: Linus Walleij <[email protected]>
Cc: Arun MURTHY <[email protected]>
Cc: Srinidhi Kasagar <[email protected]>
Cc: Richard Purdie <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'Documentation/leds')
-rw-r--r-- | Documentation/leds/leds-lp5521.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/leds/leds-lp5521.txt b/Documentation/leds/leds-lp5521.txt index c4d8d151e0fe..f48ab757d120 100644 --- a/Documentation/leds/leds-lp5521.txt +++ b/Documentation/leds/leds-lp5521.txt @@ -43,17 +43,23 @@ Format: 10x mA i.e 10 means 1.0 mA example platform data: Note: chan_nr can have values between 0 and 2. +The name of each channel can be configurable. +If the name field is not defined, the default name will be set to 'xxxx:channelN' +(XXXX : pdata->label or i2c client name, N : channel number) static struct lp5521_led_config lp5521_led_config[] = { { + .name = "red", .chan_nr = 0, .led_current = 50, .max_current = 130, }, { + .name = "green", .chan_nr = 1, .led_current = 0, .max_current = 130, }, { + .name = "blue", .chan_nr = 2, .led_current = 0, .max_current = 130, |