leds: lp8788: Fix updating scale configuration bits
authorAxel Lin <axel.lin@gmail.com>
Wed, 1 Aug 2012 12:40:34 +0000 (20:40 +0800)
committerBryan Wu <bryan.wu@canonical.com>
Wed, 8 Aug 2012 01:49:53 +0000 (09:49 +0800)
commit4df7309af6f7988da15fc9a0175fc60b997cc0d7
tree545f60503629b951e41091af11079ee15e953c0a
parent0d7614f09c1ebdbaa1599a5aba7593f147bf96ee
leds: lp8788: Fix updating scale configuration bits

We need to do left shift (cfg->num + LP8788_ISINK_SCALE_OFFSET) bits for
updating scale configuration.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Tested-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
drivers/leds/leds-lp8788.c