]> 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>
Thu, 23 May 2013 18:23:23 +0000 (11:23 -0700)
commitda48d135c20c8f1b43c4fe78af9ab107b62de494
tree279ae298907b0dd5dfe865c2791eabf831191330
parentb3e9c30f061536947bb1b7615148dac897eea845
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