]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers/video/backlight/adp88?0_bl.c: fix resume
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 22 Feb 2013 00:44:04 +0000 (16:44 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Feb 2013 14:59:01 +0000 (06:59 -0800)
commit 5eb02c01bd1f3ef195989ab05e835e2b0711b5a9 upstream.

Clearing the NSTBY bit in the control register also automatically clears
the BLEN bit.  So we need to make sure to set it again during resume,
otherwise the backlight will stay off.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/video/backlight/adp8860_bl.c
drivers/video/backlight/adp8870_bl.c

index 550dbf0bb896f9b64083b6673a8da0359ef53912..feda482d4af18f102368aad400c3ad77d7009b2d 100644 (file)
@@ -791,7 +791,7 @@ static int adp8860_i2c_suspend(struct i2c_client *client, pm_message_t message)
 
 static int adp8860_i2c_resume(struct i2c_client *client)
 {
-       adp8860_set_bits(client, ADP8860_MDCR, NSTBY);
+       adp8860_set_bits(client, ADP8860_MDCR, NSTBY | BLEN);
 
        return 0;
 }
index 9be58c6f18f10d10c0f0ecff370c3d8e3cf0f3e3..c7a2c35abddabedc9cd24db2189e5f62ae8a36a3 100644 (file)
@@ -965,7 +965,7 @@ static int adp8870_i2c_suspend(struct i2c_client *client, pm_message_t message)
 
 static int adp8870_i2c_resume(struct i2c_client *client)
 {
-       adp8870_set_bits(client, ADP8870_MDCR, NSTBY);
+       adp8870_set_bits(client, ADP8870_MDCR, NSTBY | BLEN);
 
        return 0;
 }