Skip to content

Commit

Permalink
leds: turris-omnia: check for LED_COLOR_ID_RGB instead LED_COLOR_ID_M…
Browse files Browse the repository at this point in the history
…ULTI

LED core does not allow LED_COLOR_ID_MULTI for now and instead for RGB
LEDs prefers LED_COLOR_ID_RGB.

Signed-off-by: Marek Behún <kabel@kernel.org>
Fixes: 77dce3a ("leds: disallow /sys/class/leds/*:multi:* for now")
Signed-off-by: Pavel Machek <pavel@ucw.cz>
  • Loading branch information
Marek Behún authored and Pavel Machek committed Nov 25, 2020
1 parent fca050b commit 98650b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/leds/leds-turris-omnia.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ static int omnia_led_register(struct i2c_client *client, struct omnia_led *led,
}

ret = of_property_read_u32(np, "color", &color);
if (ret || color != LED_COLOR_ID_MULTI) {
if (ret || color != LED_COLOR_ID_RGB) {
dev_warn(dev,
"Node %pOF: must contain 'color' property with value LED_COLOR_ID_MULTI\n",
"Node %pOF: must contain 'color' property with value LED_COLOR_ID_RGB\n",
np);
return 0;
}
Expand Down

0 comments on commit 98650b0

Please sign in to comment.