leds-lp5523: change the return type of lp5523_set_mode()
authorKim, Milo <Milo.Kim@ti.com>
Tue, 21 Aug 2012 09:03:58 +0000 (17:03 +0800)
committerBryan Wu <bryan.wu@canonical.com>
Tue, 11 Sep 2012 10:32:41 +0000 (18:32 +0800)
commit6f6365fbac2d6bcf6867c633d3ec33af08b5b219
tree236524d4c11381a31850871bfb8aaa7ba95502b4
parenta39b9854c79cc9ac7b7b6fed58cf07da23f1f41e
leds-lp5523: change the return type of lp5523_set_mode()

The return value of this function is not handled any place, so
make it as void type.

And three if-statements are replaced with switch-statements.

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