Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 36342742 authored by Matthew Garrett's avatar Matthew Garrett Committed by Richard Purdie
Browse files

backlight/acpi: Update the backlight state when we change brightness



Trigger a status update when we change the brightness in the driver, thus
allowing userspace to present appropriate UI.

Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
Signed-off-by: default avatarRichard Purdie <rpurdie@linux.intel.com>
parent 325253a6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1960,6 +1960,10 @@ acpi_video_switch_brightness(struct acpi_video_device *device, int event)

	result = acpi_video_device_lcd_set_level(device, level_next);

	if (!result)
		backlight_force_update(device->backlight,
				       BACKLIGHT_UPDATE_HOTKEY);

out:
	if (result)
		printk(KERN_ERR PREFIX "Failed to switch the brightness\n");