leds: leds-lp5523: modify the way of setting led device name
authorSamu Onkalo <samu.p.onkalo@nokia.com>
Thu, 13 Jan 2011 00:59:17 +0000 (16:59 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 13 Jan 2011 16:03:05 +0000 (08:03 -0800)
commit278ad4fd0e7517f1d74b8fc1c8347cad34a09b02
treefd168660d4938d61a7f04e6e112fcac8a401371a
parent125c7135251de3aea1429968aea9bdfcb6535fc7
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>
drivers/leds/leds-lp5523.c
include/linux/leds-lp5523.h