]> git.karo-electronics.de Git - karo-tx-linux.git/commit
leds: lp55xx: support dynamic channel settings in the device tree structure
authorKim, Milo <Milo.Kim@ti.com>
Tue, 7 May 2013 07:14:48 +0000 (00:14 -0700)
committerBryan Wu <cooloney@gmail.com>
Fri, 31 May 2013 17:22:52 +0000 (10:22 -0700)
commitb05636120508242265f92ac9a584a8e43078088c
treee5523206f607a49cc8acbda1d4517d2396abe056
parent9e95f744e81ae3906441c52d4fd99f921cc2be86
leds: lp55xx: support dynamic channel settings in the device tree structure

Currently, the LP55xx DT structure supports max 3 channels.
However, LP5523 has max 9 channels and LP5562 has 4 channels.
To enhance this constraint, the DT structure has been changed.

 (a) Use the child node for various channel settings instead of fixed array
 (b) Remove 'num_channel' property.
     This value can be retrieved by counting the children node.
 (c) 'chan-name' property supported
 (d) Documentation updates for LP5521 and LP5523

(cooloney@gmail.com: fix a coding style issue in leds-lp55xx.txt)

Cc: Gabriel Fernandez <gabriel.fernandez@stericsson.com>
Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
Documentation/devicetree/bindings/leds/leds-lp55xx.txt
drivers/leds/leds-lp55xx-common.c