projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e19493c
)
backlight: lm3630: fix sparse warning
author
Daniel Jeong
<
[email protected]
>
Tue, 12 Nov 2013 23:09:01 +0000
(15:09 -0800)
committer
Linus Torvalds
<
[email protected]
>
Wed, 13 Nov 2013 03:09:15 +0000
(12:09 +0900)
This patch is to fix sparse warning due to mixing different enum type.
Signed-off-by: Daniel Jeong <
[email protected]
>
Cc: Jingoo Han <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/video/backlight/lm3630a_bl.c
patch
|
blob
|
history
diff --git
a/drivers/video/backlight/lm3630a_bl.c
b/drivers/video/backlight/lm3630a_bl.c
index d719a89a4381c06535c42d4127ee8e37f8e25d42..1128a022e1d3884f300258b03ca1908d7ec52bc9 100644
(file)
--- 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);