File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1681,13 +1681,28 @@ static void acpi_video_dev_register_backlight(struct acpi_video_device *device)
1681
1681
printk (KERN_ERR PREFIX "Create sysfs link\n" );
1682
1682
}
1683
1683
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
+
1684
1697
static int acpi_video_bus_register_backlight (struct acpi_video_bus * video )
1685
1698
{
1686
1699
struct acpi_video_device * dev ;
1687
1700
1688
1701
if (video -> backlight_registered )
1689
1702
return 0 ;
1690
1703
1704
+ acpi_video_run_bcl_for_osi (video );
1705
+
1691
1706
if (!acpi_video_verify_backlight_support ())
1692
1707
return 0 ;
1693
1708
You can’t perform that action at this time.
0 commit comments