[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <314085a9074c4c6db48a1460c42fb2cd@XBOX01.axis.com>
Date: Mon, 29 Mar 2021 06:00:43 +0000
From: Hermes Zhang <Hermes.Zhang@...s.com>
To: Pavel Machek <pavel@....cz>
CC: "dmurphy@...com" <dmurphy@...com>,
"robh+dt@...nel.org" <robh+dt@...nel.org>,
"linux-leds@...r.kernel.org" <linux-leds@...r.kernel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Hermes Zhang <Hermes.Zhang@...s.com>,
"lkml@...s.com" <lkml@...s.com>, kernel <kernel@...s.com>
Subject: Re: [PATCH v2 2/2] leds: leds-multi-gpio: Add multiple GPIOs LED
driver
On 3/26/21 9:49 PM, Pavel Machek wrote:
>> + 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
Powered by blists - more mailing lists