Skip to content

Commit 667ae4e

Browse files
committed
Merge back earlier ACPI backlight material for 3.19-rc1.
2 parents 35d0565 + dce4ec2 commit 667ae4e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

drivers/acpi/video.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1681,13 +1681,28 @@ static void acpi_video_dev_register_backlight(struct acpi_video_device *device)
16811681
printk(KERN_ERR PREFIX "Create sysfs link\n");
16821682
}
16831683

1684+
static void acpi_video_run_bcl_for_osi(struct acpi_video_bus *video)
1685+
{
1686+
struct acpi_video_device *dev;
1687+
union acpi_object *levels;
1688+
1689+
mutex_lock(&video->device_list_lock);
1690+
list_for_each_entry(dev, &video->video_device_list, entry) {
1691+
if (!acpi_video_device_lcd_query_levels(dev, &levels))
1692+
kfree(levels);
1693+
}
1694+
mutex_unlock(&video->device_list_lock);
1695+
}
1696+
16841697
static int acpi_video_bus_register_backlight(struct acpi_video_bus *video)
16851698
{
16861699
struct acpi_video_device *dev;
16871700

16881701
if (video->backlight_registered)
16891702
return 0;
16901703

1704+
acpi_video_run_bcl_for_osi(video);
1705+
16911706
if (!acpi_video_verify_backlight_support())
16921707
return 0;
16931708

0 commit comments

Comments
 (0)