[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8da42ae5-2fc4-0a63-56d2-6e09dcb669a9@traphandler.com>
Date: Fri, 7 Oct 2022 08:29:49 +0200
From: Jean-Jacques Hiblot <jjhiblot@...phandler.com>
To: Andy Shevchenko <andy.shevchenko@...il.com>
CC: <pavel@....cz>, <robh+dt@...nel.org>,
<sven.schwermer@...ruptive-technologies.com>,
<krzysztof.kozlowski+dt@...aro.org>, <johan+linaro@...nel.org>,
<marijn.suijten@...ainline.org>, <bjorn.andersson@...aro.org>,
<linux-leds@...r.kernel.org>, <devicetree@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <sha@...gutronix.de>
Subject: Re: [RESEND PATCH v3 2/4] leds: class: store the color index in
struct led_classdev
On 17/09/2022 10:40, Andy Shevchenko wrote:
> On Sat, Sep 17, 2022 at 11:14 AM Jean-Jacques Hiblot
> <jjhiblot@...phandler.com> wrote:
>> This information might be useful for more than only deriving the led's
> ...
>
>> + if (fwnode_property_present(init_data->fwnode, "color"))
>> + fwnode_property_read_u32(init_data->fwnode, "color",
>> + &led_cdev->color);
> Is it already described in the schema?
Hello Andy,
thanks for the reviews on the patch, and sorry for the delay in my
responses.
Yes. This is already part of the schema.
> ...
>
>> unsigned int brightness;
>> unsigned int max_brightness;
>> + unsigned int color;
> The above two are exposed via sysfs, do you need to expose a new one
> as well? (Just a question, I am not taking any side here, want to hear
> explanation of the either choice)
I didn't really think about it because I didn't need it.
It probably doesn't hurt to expose t in the sysfs. I'll add this in the
next round.
>
Powered by blists - more mailing lists