+ backlight-add-support-for-pandora-backlight-v2.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: backlight-add-support-for-pandora-backlight-v2
has been added to the -mm tree.  Its filename is
     backlight-add-support-for-pandora-backlight-v2.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: Grazvydas Ignotas <notasas@xxxxxxxxx>
Subject: backlight-add-support-for-pandora-backlight-v2

changed in v2: fixed a bug where setting brightness to 0 twice
               would actually turn the backlight on.
We had this driver in pandora tree for a couple of years now, but
while cleaning it up for mainline submission I've introduced this
bug, sorry for the noise.

Signed-off-by: Grazvydas Ignotas <notasas@xxxxxxxxx>
Cc: Richard Purdie <rpurdie@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/video/backlight/pandora_bl.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff -puN drivers/video/backlight/pandora_bl.c~backlight-add-support-for-pandora-backlight-v2 drivers/video/backlight/pandora_bl.c
--- a/drivers/video/backlight/pandora_bl.c~backlight-add-support-for-pandora-backlight-v2
+++ a/drivers/video/backlight/pandora_bl.c
@@ -52,7 +52,10 @@ static int pandora_backlight_update_stat
 	if ((unsigned int)brightness > MAX_USER_VALUE)
 		brightness = MAX_USER_VALUE;
 
-	if (brightness == 0 && !(bl->props.state & PANDORABL_WAS_OFF)) {
+	if (brightness == 0) {
+		if (bl->props.state & PANDORABL_WAS_OFF)
+			goto done;
+
 		/* first disable PWM0 output, then clock */
 		twl_i2c_read_u8(TWL4030_MODULE_INTBR, &r, TWL_INTBR_GPBR1);
 		r &= ~PWM0_ENABLE;
_
Subject: Subject: backlight-add-support-for-pandora-backlight-v2

Patches currently in -mm which might be from notasas@xxxxxxxxx are

origin.patch
linux-next.patch
backlight-add-support-for-pandora-backlight.patch
backlight-add-support-for-pandora-backlight-v2.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux