pmaports/main/linux-postmarketos-qcom/0001-Fix-Hammerhead-backlight.patch
2018-11-27 07:47:11 +01:00

31 lines
1 KiB
Diff

From 03e63d9bf892d871148b6fc71873f01873c9c88f Mon Sep 17 00:00:00 2001
From: Pierre Parent <pierre.parent@pparent.fr>
Date: Tue, 2 Oct 2018 08:54:34 +0200
Subject: [PATCH 1/1] Fix Hammerhead backlight
---
drivers/video/backlight/lm3630a_bl.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/video/backlight/lm3630a_bl.c b/drivers/video/backlight/lm3630a_bl.c
index a38e348..271f476 100644
--- a/drivers/video/backlight/lm3630a_bl.c
+++ b/drivers/video/backlight/lm3630a_bl.c
@@ -398,11 +398,11 @@ static int lm3630a_probe(struct i2c_client *client,
return -ENOMEM;
/* default values */
pdata->leda_ctrl = LM3630A_LEDA_ENABLE;
- pdata->ledb_ctrl = LM3630A_LEDB_DISABLE;
+ pdata->ledb_ctrl = LM3630A_LEDB_ON_A;
pdata->leda_max_brt = LM3630A_MAX_BRIGHTNESS;
pdata->ledb_max_brt = LM3630A_MAX_BRIGHTNESS;
- pdata->leda_init_brt = 128;
- pdata->ledb_init_brt = LM3630A_MAX_BRIGHTNESS;
+ pdata->leda_init_brt = 180;
+ pdata->ledb_init_brt = 180;
}
pchip->pdata = pdata;
--
2.11.0