Re: [PATCH v6 1/5] platform: x86-android-tablets: other: Add swnode for Xiaomi pad2 indicator LED
From: Kate Hsuan
Date: Thu Apr 18 2024 - 03:46:32 EST
Hi Andy,
Thank you for reviewing.
On Tue, Apr 16, 2024 at 9:46 PM Andy Shevchenko
<andy.shevchenko@xxxxxxxxx> wrote:
>
> On Tue, Apr 16, 2024 at 8:39 AM Kate Hsuan <hpa@xxxxxxxxxx> wrote:
> >
> > KTD2026 LED controller manages the indicator LED for Xiaomi pad2. The ACPI
> > for it is not properly made so the kernel can't get a correct description.
> >
> > This work adds a description for this RGB LED controller and also sets a
> > trigger to indicate the changing event (bq27520-0-charging). When it is
> > charging, the indicator LED will be turned on.
>
> ...
>
> > +/*
> > + * The fwnode for ktd2026 on Xaomi pad2. It composed of a RGB LED node
>
> is composed
Okay.
>
> > + * with three subnodes for each color. The RGB LED node is named
> > + * "multi-led" to align with the name in the device tree.
> > + */
>
> ...
>
> > +static const struct software_node ktd2026_node = {
> > + .name = "ktd2026"
>
> Please, leave a trailing comma as it's not a termination entry.
Okay.
>
> > +};
>
> (TBH I'm still unsure that having a name is a good idea even if it's
> supposed to be only a single device on the platform, but it's up to
> Hans who has an experience with those.)
Hans gave me an example without a name. I think, it can be dropped.
Moreover, Only one KTD2026 is on Xiaomi Pad2 so having a name is ok too.
>
> --
> With Best Regards,
> Andy Shevchenko
>
--
BR,
Kate