Open dNechita opened 3 years ago
In theory this is the first thing to try iio_device_get_label()
... in the kernel, IIO labels are how devices should be distinguished when multiple devices exist. We were doing this by setting the device name with the devicetree node name which is not how things should be done in IIO. Now that libiio supports labels, we can start doing this properly (in new drivers)... In #323 , I'm already making use of them :). Unfortunately for 2019_R2 we cannot use it as we cannot assume that 2019_R2 libiio has support for it
yeah, I would agree - by label, by name (if no duplicates), and by ID as the last resort...
I have started to do it with #345. Maybe the DMM plugin is the next on the list...
There are situations where multiple IIO devices with the same name exists and in those cases there is no way to differentiate the devices if looking them up by name.