aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
authorMarek Behún <kabel@kernel.org>2024-11-11 11:03:53 +0100
committerLee Jones <lee@kernel.org>2024-12-12 18:37:36 +0000
commit2de889e9cf25558bf12505b6827dcd435cbc1b11 (patch)
treeadda1bd5d60778bff9f10883afd2e8dd50b85c4a /drivers/leds
parent1783b766940f37aeaf7c841f777be8cf68326908 (diff)
downloadath-2de889e9cf25558bf12505b6827dcd435cbc1b11.tar.gz
leds: turris-omnia: Inform about missing LED gamma correction feature in the MCU driver
If the LED gamma correction feature is missing in the MCU firmware, inform about this in the MCU firmware probe function instead of LED driver probe function, so that all the feature checks are in one place. Signed-off-by: Marek Behún <kabel@kernel.org> Link: https://lore.kernel.org/r/20241111100355.6978-10-kabel@kernel.org Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/leds')
-rw-r--r--drivers/leds/leds-turris-omnia.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/leds/leds-turris-omnia.c b/drivers/leds/leds-turris-omnia.c
index 4f7b529781ce7..cfbcbdd7921b0 100644
--- a/drivers/leds/leds-turris-omnia.c
+++ b/drivers/leds/leds-turris-omnia.c
@@ -507,12 +507,6 @@ static int omnia_leds_probe(struct i2c_client *client)
}
leds->has_gamma_correction = ret & OMNIA_FEAT_LED_GAMMA_CORRECTION;
- if (!leds->has_gamma_correction) {
- dev_info(dev,
- "Your board's MCU firmware does not support the LED gamma correction feature.\n");
- dev_info(dev,
- "Consider upgrading MCU firmware with the omnia-mcutool utility.\n");
- }
if (ret & OMNIA_FEAT_BRIGHTNESS_INT) {
ret = omnia_request_brightness_irq(leds);