Re: [PATCH v3 6/6] iio: light: ltr501: Fix sorting order of device arrays

From: Esben Haabendal

Date: Fri Aug 07 2026 - 04:02:56 EST


"Andy Shevchenko" <andriy.shevchenko@xxxxxxxxx> writes:

> On Tue, Aug 04, 2026 at 07:02:17PM +0200, Esben Haabendal wrote:
>> Using alphanumerical sort order for these should help reduce merge
>> conflicts.
>
> ...
>
>> enum {
>> - ltr501 = 0,
>> - ltr559,
>> - ltr301,
>
>> + ltr301 = 0,
>
> Is the 0 required? Why?

As for the code produced, it should not make any difference.

I assume it was put here for improved code readability, and I did not
see any reason to change that.

I don't care about it myself, so will be happy to remove it if that is
the preferred style now.

>> ltr303,
>> ltr329,
>> + ltr501,
>> + ltr559,
>> };

/Esben