Commit 5eb02c01 authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Linus Torvalds
Browse files

drivers/video/backlight/adp88?0_bl.c: fix resume



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: default avatarLars-Peter Clausen <lars@metafoo.de>
Acked-by: default avatarMichael Hennerich <michael.hennerich@analog.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5a429bdd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -783,7 +783,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;
}
+1 −1
Original line number Diff line number Diff line
@@ -957,7 +957,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;
}