leds: turris-omnia: Add support for enabling/disabling HW gamma correction
authorMarek Behún <kabel@kernel.org>
Mon, 18 Sep 2023 16:11:04 +0000 (18:11 +0200)
committerLee Jones <lee@kernel.org>
Wed, 1 Nov 2023 11:28:48 +0000 (11:28 +0000)
commit43e9082fbccc7df8b2028c1ba040c58cefda703f
tree6d736b10d28d143f0b2723b1c2d811d35ce54abe
parentcbd6954fecbeb822cf380fa2573ccb4a3a457e88
leds: turris-omnia: Add support for enabling/disabling HW gamma correction

If the MCU on Turris Omnia is running newer firmware versions, the LED
controller supports RGB gamma correction (and enables it by default for
newer boards).

Determine whether the gamma correction setting feature is supported and
add the ability to set it via sysfs attribute file.

Signed-off-by: Marek Behún <kabel@kernel.org>
Link: https://lore.kernel.org/r/20230918161104.20860-5-kabel@kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>
Documentation/ABI/testing/sysfs-class-led-driver-turris-omnia
drivers/leds/leds-turris-omnia.c