Fix hammerhead (Nexus 5) backlight.
This commit is contained in:
parent
45d4d7ec58
commit
7dca9c4703
2 changed files with 35 additions and 2 deletions
|
@ -0,0 +1,31 @@
|
|||
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
|
||||
|
|
@ -4,7 +4,7 @@ _config="config-${_flavor}.${CARCH}"
|
|||
pkgname=linux-${_flavor}
|
||||
|
||||
pkgver=4.17_rc3
|
||||
pkgrel=6
|
||||
pkgrel=7
|
||||
|
||||
arch="armhf"
|
||||
pkgdesc="Kernel close to mainline with extra patches for Qualcomm devices"
|
||||
|
@ -17,6 +17,7 @@ _commit="09efb4857f1a4119eced855912043817bd96e064"
|
|||
source="
|
||||
linux-${_commit}.tar.gz::https://gitlab.com/postmarketOS/linux-postmarketos/-/archive/${_commit}/linux-postmarketos-${_commit}.tar.gz
|
||||
config-${_flavor}.armhf
|
||||
0001-Fix-Hammerhead-backlight.patch
|
||||
"
|
||||
|
||||
subpackages="$pkgname-dev"
|
||||
|
@ -182,4 +183,5 @@ dev() {
|
|||
fi
|
||||
}
|
||||
sha512sums="02fd136d24914e30decd207c3b2e0168cc9d6e4a0fc981abf8d537cd95c70583f5239d0dc7f2ae94a2ddd2ba82d822933159167801a035731a24aa1300c5ceec linux-09efb4857f1a4119eced855912043817bd96e064.tar.gz
|
||||
fc151402f33f947fdfb1a0f60f7dee621b2299678c14bbc2d3425c22b3300795cddfba8635f3d2d9a409ea506e825d00957bffe14d54cd14612d364a1d03529a config-postmarketos-qcom.armhf"
|
||||
fc151402f33f947fdfb1a0f60f7dee621b2299678c14bbc2d3425c22b3300795cddfba8635f3d2d9a409ea506e825d00957bffe14d54cd14612d364a1d03529a config-postmarketos-qcom.armhf
|
||||
caf6d5615548dda58261c1d0fb571b93f0bd057a7dd071980e2402bae62bb951e40375693776b846a431c9ea47b8e6098f292b83b3744b23f2e5663f830b3548 0001-Fix-Hammerhead-backlight.patch"
|
||||
|
|
Loading…
Reference in a new issue