diff options
author | Daniel Jeong <gshark.jeong@gmail.com> | 2013-11-12 15:09:01 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-13 12:09:15 +0900 |
commit | 4c4d2a3a064c893324ad3daca5c097dc7f06bbe3 (patch) | |
tree | 864005aa497ebb3fbf65b03172c355ebf68c8512 /drivers/video | |
parent | e19493c1f29a3ac48db8797a79532b62a03442b8 (diff) | |
download | op-kernel-dev-4c4d2a3a064c893324ad3daca5c097dc7f06bbe3.zip op-kernel-dev-4c4d2a3a064c893324ad3daca5c097dc7f06bbe3.tar.gz |
backlight: lm3630: fix sparse warning
This patch is to fix sparse warning due to mixing different enum type.
Signed-off-by: Daniel Jeong <gshark.jeong@gmail.com>
Cc: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/backlight/lm3630a_bl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/backlight/lm3630a_bl.c b/drivers/video/backlight/lm3630a_bl.c index d719a89..1128a02 100644 --- a/drivers/video/backlight/lm3630a_bl.c +++ b/drivers/video/backlight/lm3630a_bl.c @@ -90,8 +90,8 @@ static int lm3630a_chip_init(struct lm3630a_chip *pchip) /* set current B */ rval |= lm3630a_write(pchip, REG_I_B, 0x1F); /* set control */ - rval |= - lm3630a_write(pchip, REG_CTRL, pdata->leda_ctrl | pdata->ledb_ctrl); + rval |= lm3630a_update(pchip, REG_CTRL, 0x14, pdata->leda_ctrl); + rval |= lm3630a_update(pchip, REG_CTRL, 0x0B, pdata->ledb_ctrl); usleep_range(1000, 2000); /* set brightness A and B */ rval |= lm3630a_write(pchip, REG_BRT_A, pdata->leda_init_brt); |