HID: hid-appletb-kbd: add support for automatic brightness control while using the...
authorAditya Garg <gargaditya08@live.com>
Tue, 31 Dec 2024 17:37:17 +0000 (17:37 +0000)
committerJiri Kosina <jkosina@suse.com>
Fri, 7 Feb 2025 13:03:56 +0000 (14:03 +0100)
commit93a0fc48948107e0cc34e1de22c3cb363a8f2783
treec797793e9896555ba3bbc8ac9a2b758b24903366
parent7d62ba8deacf94f546a0b9dd9bc86617343187a3
HID: hid-appletb-kbd: add support for automatic brightness control while using the touchbar

On Windows, if there is no input by the user for 60 sec, the Touch Bar dims
automatically, and after further 15 sec, it turns off. On receiving input,
the Touch Bar resets the timer and goes back to full brightness. This patch
implements the same functionality.

Signed-off-by: Aditya Garg <gargaditya08@live.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/Kconfig
drivers/hid/hid-appletb-kbd.c