@@ -765,6 +765,9 @@ int acpi_video_get_levels(struct acpi_device *device,
int result = 0;
u32 value;
+ pr_info("%s for device %s, handle %p\n", __func__, dev_name(&device->dev),
+ device->handle);
+
if (!ACPI_SUCCESS(acpi_video_device_lcd_query_levels(device->handle,
&obj))) {
pr_err("Could not query available LCD brightness level\n");
@@ -1747,7 +1750,8 @@ static void acpi_video_run_bcl_for_osi(struct acpi_video_bus *video)
mutex_lock(&video->device_list_lock);
list_for_each_entry(dev, &video->video_device_list, entry) {
- if (!acpi_video_device_lcd_query_levels(dev, &levels))
+ if (!acpi_video_device_lcd_query_levels(dev->dev->handle,
+ &levels))
kfree(levels);
}
mutex_unlock(&video->device_list_lock);