summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcodeworkx <daniel.hillenbrand@codeworkx.de>2012-07-01 16:15:52 +0200
committercodeworkx <daniel.hillenbrand@codeworkx.de>2012-07-01 16:18:20 +0200
commitb20c5367514dc976afbc7f074ad5b8a49bbc592b (patch)
treec2c1fea30eb963aa6f616d92f93467d42fe08fec
parent679d203f63c9c6c64825b2df0b0f005e4aaaeee4 (diff)
downloadandroid_hardware_samsung-b20c5367514dc976afbc7f074ad5b8a49bbc592b.tar.gz
android_hardware_samsung-b20c5367514dc976afbc7f074ad5b8a49bbc592b.tar.bz2
android_hardware_samsung-b20c5367514dc976afbc7f074ad5b8a49bbc592b.zip
fix for fix keypad lighting up when screen backlight auto-adjusts
Change-Id: I61e987b4fcae277ab4a1ec6585b25255a445b238
-rw-r--r--exynos4/exynos4x12/liblights/lights.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exynos4/exynos4x12/liblights/lights.c b/exynos4/exynos4x12/liblights/lights.c
index de2f653..e8336d2 100644
--- a/exynos4/exynos4x12/liblights/lights.c
+++ b/exynos4/exynos4x12/liblights/lights.c
@@ -126,7 +126,7 @@ static int set_light_backlight(struct light_device_t *dev,
struct light_state_t const *state)
{
int err = 0;
- status int s_previous_brightness = -1;
+ static int s_previous_brightness = -1;
int brightness = rgb_to_brightness(state);
pthread_mutex_lock(&g_lock);