Skip to contentSkip to conversation

+ backlight-lm3630-apply-chip-revision-fix.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Oct 3, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Subject: + backlight-lm3630-apply-chip-revision-fix.patch added to -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Thu, 03 Oct 2013 14:04:18 -0700

The patch titled
Subject: backlight: lm3630: fix sparse warning
has been added to the -mm tree. Its filename is
backlight-lm3630-apply-chip-revision-fix.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/backlight-lm3630-apply-chip-revision-fix.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/backlight-lm3630-apply-chip-revision-fix.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Daniel Jeong <[email protected]>
Subject: backlight: lm3630: fix sparse warning

This patch is to fix sparse warning due to mixing different enum type.

---

 drivers/video/backlight/lm3630a_bl.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/video/backlight/lm3630a_bl.c renamed from drivers/video/backlight/lm3630a_bl.c~backlight-lm3630-apply-chip-revision-fix +2 -2
diff -puN drivers/video/backlight/lm3630a_bl.c~backlight-lm3630-apply-chip-revision-fix drivers/video/backlight/lm3630a_bl.c
@@ -90,8 +90,8 @@ static int lm3630a_chip_init(struct lm36
 	/* 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);

_

Patches currently in -mm which might be from [email protected] are

backlight-lm3630-apply-chip-revision.patch backlight-lm3630-apply-chip-revision-fix.patch