]> www.infradead.org Git - users/jedix/linux-maple.git/commit
leds: turris-omnia: Notify sysfs on MCU global LEDs brightness change
authorMarek BehĂșn <kabel@kernel.org>
Mon, 11 Nov 2024 10:03:51 +0000 (11:03 +0100)
committerLee Jones <lee@kernel.org>
Thu, 12 Dec 2024 18:37:36 +0000 (18:37 +0000)
commitd82e09d62b3bdbfa9dac2daf3c3c071b6a79d2aa
treedacfda7eceb0c204faad24de23a9dd3827811078
parent8ca5bf8ad183e1b05034ccfd96d59e7b802d6335
leds: turris-omnia: Notify sysfs on MCU global LEDs brightness change

Recall that on Turris Omnia, the LED controller has a global brightness
property, which allows the user to make the front LED panel dimmer.

There is also a button on the front panel, which by default is
configured so that pressing it changes the global brightness to a lower
value (unless it is at 0%, in which case pressing the button changes the
global brightness to 100%).

Newer versions of the MCU firmware support informing the SOC that the
brightness was changed by button press event via an interrupt.

Now that we have the turris-omnia-mcu driver, which adds support for MCU
interrupts, add the ability to inform the userspace (via a sysfs
notification) that the global brightness was changed.

Signed-off-by: Marek BehĂșn <kabel@kernel.org>
Link: https://lore.kernel.org/r/20241111100355.6978-8-kabel@kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/Kconfig
drivers/leds/leds-turris-omnia.c