Re: [PATCH] iio: industrialio-core: look for aliases to request device index

From: Andy Shevchenko
Date: Sat Mar 16 2024 - 16:21:24 EST


Fri, Mar 15, 2024 at 10:53:36AM -0500, David Lechner kirjoitti:
> On Fri, Mar 15, 2024 at 12:58 AM Dominique Martinet
> <dominique.martinet@xxxxxxxxxxxxxxxxx> wrote:

..

> How about using udev rules to create symlinks for each device based on
> the label attribute? No changes to the kernel are needed.

+1 for the suggestion. We have a lot of information in sysfs to distinguish
devices by a physical connection, even if we have the same names/labels they
may not have the same physical connections (if there is a possibility of the
collision, then it means it has to be fixed elsewhere).

--
With Best Regards,
Andy Shevchenko