summaryrefslogtreecommitdiff
path: root/include/linux/leds-lp5523.h
diff options
context:
space:
mode:
authorSamu Onkalo <samu.p.onkalo@nokia.com>2011-01-13 03:59:17 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2011-01-13 19:03:05 +0300
commit278ad4fd0e7517f1d74b8fc1c8347cad34a09b02 (patch)
treefd168660d4938d61a7f04e6e112fcac8a401371a /include/linux/leds-lp5523.h
parent125c7135251de3aea1429968aea9bdfcb6535fc7 (diff)
downloadlinux-278ad4fd0e7517f1d74b8fc1c8347cad34a09b02.tar.xz
leds: leds-lp5523: modify the way of setting led device name
Currently all leds channels begins with string lp5523. Patch adds a possibility to provide name via platform data. This makes it possible to have several chips without overlapping sysfs names. Signed-off-by: Samu Onkalo <samu.p.onkalo@nokia.com> Cc: Arun Murthy <arun.murthy@stericsson.com> Cc: Ilkka Koskinen <ilkka.koskinen@nokia.com> Cc: Richard Purdie <rpurdie@rpsys.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/leds-lp5523.h')
-rw-r--r--include/linux/leds-lp5523.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/leds-lp5523.h b/include/linux/leds-lp5523.h
index 796747637b80..2694289babd0 100644
--- a/include/linux/leds-lp5523.h
+++ b/include/linux/leds-lp5523.h
@@ -42,6 +42,7 @@ struct lp5523_platform_data {
int (*setup_resources)(void);
void (*release_resources)(void);
void (*enable)(bool state);
+ const char *label;
};
#endif /* __LINUX_LP5523_H */