aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMarek BehĂșn <kabel@kernel.org>2024-11-11 11:03:52 +0100
committerLee Jones <lee@kernel.org>2024-12-12 18:37:36 +0000
commit1783b766940f37aeaf7c841f777be8cf68326908 (patch)
tree4c2b15a3dea2357ce217d5e57c591ce28a7df89b
parentleds: turris-omnia: Notify sysfs on MCU global LEDs brightness change (diff)
downloadwireguard-linux-1783b766940f37aeaf7c841f777be8cf68326908.tar.xz
wireguard-linux-1783b766940f37aeaf7c841f777be8cf68326908.zip
platform: cznic: turris-omnia-mcu: Inform about missing LED panel brightness change interrupt feature
When reading MCU firmware features, check also for the LED panel brightness change interrupt feature, and suggest upgrading the firmware if it is missing. Signed-off-by: Marek BehĂșn <kabel@kernel.org> Link: https://lore.kernel.org/r/20241111100355.6978-9-kabel@kernel.org Signed-off-by: Lee Jones <lee@kernel.org>
-rw-r--r--drivers/platform/cznic/turris-omnia-mcu-base.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/cznic/turris-omnia-mcu-base.c b/drivers/platform/cznic/turris-omnia-mcu-base.c
index bb871226e357..3bb4a3cfdb29 100644
--- a/drivers/platform/cznic/turris-omnia-mcu-base.c
+++ b/drivers/platform/cznic/turris-omnia-mcu-base.c
@@ -258,6 +258,7 @@ static int omnia_mcu_read_features(struct omnia_mcu *mcu)
_DEF_FEAT(NEW_INT_API, "new interrupt API"),
_DEF_FEAT(POWEROFF_WAKEUP, "poweroff and wakeup"),
_DEF_FEAT(TRNG, "true random number generator"),
+ _DEF_FEAT(BRIGHTNESS_INT, "LED panel brightness change interrupt"),
#undef _DEF_FEAT
};
struct i2c_client *client = mcu->client;