Thread (9 messages) 9 messages, 5 authors, 2021-03-29

Re: [PATCH v2 2/2] leds: leds-multi-gpio: Add multiple GPIOs LED driver

From: Hermes Zhang <hidden>
Date: 2021-03-29 06:01:26
Also in: linux-leds, lkml

On 3/26/21 9:49 PM, Pavel Machek wrote:
quoted
+	of_property_read_string(node, "default-state", &state);
+	if (!strcmp(state, "on"))
+		multi_gpio_led_set(&priv->cdev, priv->cdev.max_brightness);
+	else
+		multi_gpio_led_set(&priv->cdev, 0);
No need for default-state handling, unless you are using it.
We will use it, to make the LED default on or off.


Best Regards,

Hermes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help