Skip to content

Commit 6c0e709

Browse files
committed
Revert "backlight: lm3630a: Turn off both led strings when display is blank"
Appears to turn off the backlight on both oneplus-bacon and lg-hammerhead whenever the backlight brightness is changed. Could be connected to that Linux actually doesn't know the panel and backlight are connected, so maybe that's why it thinks it should blank it. Let's investigate later! This reverts commit ae9c480.
1 parent 1b42f26 commit 6c0e709

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

drivers/video/backlight/lm3630a_bl.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,7 @@ static int lm3630a_bank_a_update_status(struct backlight_device *bl)
202202
usleep_range(1000, 2000);
203203
/* minimum brightness is 0x04 */
204204
ret = lm3630a_write(pchip, REG_BRT_A, bl->props.brightness);
205-
206-
if (backlight_is_blank(bl) || (backlight_get_brightness(bl) < 0x4))
207-
/* turn the string off */
205+
if (bl->props.brightness < 0x4)
208206
ret |= lm3630a_update(pchip, REG_CTRL, LM3630A_LEDA_ENABLE, 0);
209207
else
210208
ret |= lm3630a_update(pchip, REG_CTRL,
@@ -279,9 +277,7 @@ static int lm3630a_bank_b_update_status(struct backlight_device *bl)
279277
usleep_range(1000, 2000);
280278
/* minimum brightness is 0x04 */
281279
ret = lm3630a_write(pchip, REG_BRT_B, bl->props.brightness);
282-
283-
if (backlight_is_blank(bl) || (backlight_get_brightness(bl) < 0x4))
284-
/* turn the string off */
280+
if (bl->props.brightness < 0x4)
285281
ret |= lm3630a_update(pchip, REG_CTRL, LM3630A_LEDB_ENABLE, 0);
286282
else
287283
ret |= lm3630a_update(pchip, REG_CTRL,

0 commit comments

Comments
 (0)