lkml.org 
[lkml]   [2013]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] acpi/video: lcd_get_level_current doen't return current level
Date
acpi_video_device_lcd_get_level_current() called acpi_video_bqc_value_to_level()
with "*level" as a second argument, resulting in level being returned based on
initial input, not current brightness, breaking backlight controls.

Signed-off-by: Artem Savkov <artem.savkov@gmail.com>
---
drivers/acpi/video.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
index 3cdd047..68a777b 100644
--- a/drivers/acpi/video.c
+++ b/drivers/acpi/video.c
@@ -505,7 +505,8 @@ acpi_video_device_lcd_get_level_current(struct acpi_video_device *device,
return 0;
}

- *level = acpi_video_bqc_value_to_level(device, *level);
+ *level = acpi_video_bqc_value_to_level(device,
+ device->brightness->curr);

for (i = 2; i < device->brightness->count; i++)
if (device->brightness->levels[i] == *level) {
--
1.8.2


\
 
 \ /
  Last update: 2013-03-30 14:41    [W:0.050 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site