From: Jonathan Cameron <jic23@kernel.org>
To: Esben Haabendal <esben@geanix.com>
Cc: "Krzysztof Kozlowski" <krzk@kernel.org>,
"David Lechner" <dlechner@baylibre.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Nikita Travkin" <nikita@trvn.ru>,
"Maslov Dmitry" <maslovdmitry@seeed.cc>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 2/4] dt-bindings: iio: light: ltr501: Add ltr329 compatible
Date: Tue, 4 Aug 2026 23:56:22 +0100 [thread overview]
Message-ID: <20260804235622.06dd567a@jic23-huawei> (raw)
In-Reply-To: <87ldamar80.fsf@geanix.com>
On Tue, 04 Aug 2026 16:35:27 +0200
Esben Haabendal <esben@geanix.com> wrote:
> "Jonathan Cameron" <jonathan.cameron@oss.qualcomm.com> writes:
>
> > On Thu, 16 Jul 2026 16:14:55 +0000
> > Esben Haabendal <esben@geanix.com> wrote:
> >
> >> On Thursday, 16 July 2026 at 10:07, Krzysztof Kozlowski <krzk@kernel.org> wrote:
> >>
> >> > On Wed, Jul 15, 2026 at 02:27:24PM +0200, Esben Haabendal wrote:
> >> > > LTR-329ALS-01 is an ambient light sensor similar to LTR-303ALS-01, but
> >> > > without interrupt support.
> >> > >
> >> > > Signed-off-by: Esben Haabendal <esben@geanix.com>
> >> > > ---
> >> > > Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml | 1 +
> >> > > 1 file changed, 1 insertion(+)
> >> > >
> >> > > diff --git a/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml b/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml
> >> > > index ab9bb68dd736..76e81eba7ea4 100644
> >> > > --- a/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml
> >> > > +++ b/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml
> >> > > @@ -19,6 +19,7 @@ properties:
> >> > > - liteon,ltr559
> >> > > - liteon,ltr301
> >> > > - liteon,ltr303
> >> > > + - liteon,ltr329
> >> >
> >> > Do not grow lists at the end, they are ordered alphanumerically to avoid
> >> > conflicts.
> >>
> >> Placing the new entry at the top would produce a rather strangely order list:
> >>
> >> ltr329
> >> ltr501
> >> ltr559
> >> ltr301
> >> ltr329
> >>
> >> Should I add a patch sorting the entire list to avoid this kind of
> >> confusion in the future?
> >
> > Please do a precursor patch for that Also do it for the id tables in the driver.
>
> Ok. Sorting ltr501_id and ltr501_of_match should be trivial.
> But what about ltr501_chip_info_tbl (and the anonymous enum used to
> index it, should they be sorted as well? And ltr301 being 0 instead of
> ltr501, the original device the driver was written for?
Sure. The numbers don't mean anything in particular afterall.
Good point to raise.
Jonathan
>
> /Esben
>
next prev parent reply other threads:[~2026-08-04 22:56 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-15 12:27 [PATCH v2 0/4] iio: light: ltr501: Add ltr329 support Esben Haabendal
2026-07-15 12:27 ` [PATCH v2 1/4] dt-bindings: iio: light: ltr501: Add missing ltr303 compatible Esben Haabendal
2026-07-15 12:37 ` sashiko-bot
2026-07-16 8:05 ` Krzysztof Kozlowski
2026-07-16 8:06 ` Krzysztof Kozlowski
2026-08-04 14:25 ` Esben Haabendal
2026-07-15 12:27 ` [PATCH v2 2/4] dt-bindings: iio: light: ltr501: Add ltr329 compatible Esben Haabendal
2026-07-16 8:07 ` Krzysztof Kozlowski
2026-07-16 16:14 ` Esben Haabendal
2026-07-19 1:38 ` Jonathan Cameron
2026-08-04 14:35 ` Esben Haabendal
2026-08-04 22:56 ` Jonathan Cameron [this message]
2026-07-15 12:27 ` [PATCH v2 3/4] iio: light: ltr501: Add ltr329 driver support Esben Haabendal
2026-07-15 12:48 ` sashiko-bot
2026-07-15 12:53 ` Joshua Crofts
2026-07-15 13:55 ` Esben Haabendal
2026-07-15 13:58 ` Joshua Crofts
2026-07-15 13:16 ` Nuno Sá
2026-07-15 13:43 ` Esben Haabendal
2026-07-15 14:25 ` Nuno Sá
2026-08-04 14:44 ` Esben Haabendal
2026-08-05 10:53 ` Nuno Sá
2026-07-19 1:47 ` Jonathan Cameron
2026-07-15 12:27 ` [PATCH v2 4/4] iio: light: ltr501: Power down chip if request irq fails Esben Haabendal
2026-07-15 12:59 ` Joshua Crofts
2026-07-15 13:32 ` Esben Haabendal
2026-07-15 13:01 ` Nuno Sá
2026-07-15 13:31 ` Esben Haabendal
2026-07-15 13:53 ` Esben Haabendal
2026-07-19 1:51 ` Jonathan Cameron
2026-07-15 12:55 ` [PATCH v2 0/4] iio: light: ltr501: Add ltr329 support Joshua Crofts
2026-07-15 13:17 ` Nuno Sá
2026-07-15 13:34 ` Esben Haabendal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260804235622.06dd567a@jic23-huawei \
--to=jic23@kernel.org \
--cc=andy@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=esben@geanix.com \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maslovdmitry@seeed.cc \
--cc=nikita@trvn.ru \
--cc=nuno.sa@analog.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.