]> git.karo-electronics.de Git - karo-tx-linux.git/commit
leds-lp5523: clean up lp5523_configure()
authorMilo(Woogyom) Kim <milo.kim@ti.com>
Tue, 5 Feb 2013 09:04:50 +0000 (18:04 +0900)
committerBryan Wu <cooloney@gmail.com>
Wed, 6 Feb 2013 23:59:27 +0000 (15:59 -0800)
commit632418bf65503405df3f9a6a1616f5a95f91db85
tree15399857e1908e6e92abebc1ab58565b58c02e30
parent9448217403462c4b17bc56690a0348a0c02e5ba2
leds-lp5523: clean up lp5523_configure()

 This patch is a preceding step for making common lp55xx init function.

 Return code:
 Do not use 'OR' arithmetic for the result.
 If some error occurs, just return it.

 Remove engine verification code:
 To check whether internal engine works or not, many lines of code are executed.
 However, this job is unnecessary during the chip initialization because
 the engine usage is not mandatory but optional function.
 LED engines are enabled when specific LED pattern is loaded.
 Therefore, this verification code is removed.

Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/leds-lp5523.c