提交 98650b08 编写于 作者: M Marek Behún 提交者: Pavel Machek

leds: turris-omnia: check for LED_COLOR_ID_RGB instead LED_COLOR_ID_MULTI

LED core does not allow LED_COLOR_ID_MULTI for now and instead for RGB
LEDs prefers LED_COLOR_ID_RGB.
Signed-off-by: NMarek Behún <kabel@kernel.org>
Fixes: 77dce3a2 ("leds: disallow /sys/class/leds/*:multi:* for now")
Signed-off-by: NPavel Machek <pavel@ucw.cz>
上级 fca050bb
...@@ -90,9 +90,9 @@ static int omnia_led_register(struct i2c_client *client, struct omnia_led *led, ...@@ -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); 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, 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); np);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册