On Mon, 4 Mar 2024 21:07:09 +0200 Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote: > On Mon, Mar 04, 2024 at 07:50:17PM +0100, Vasileios Amoiridis wrote: > > On Mon, Mar 04, 2024 at 01:47:47PM +0200, Andy Shevchenko wrote: > > > On Sun, Mar 03, 2024 at 05:52:59PM +0100, Vasileios Amoiridis wrote: > > ... > > > > > +enum bmp280_scan { > > > > + BMP280_TEMP, > > > > + BMP280_PRESS, > > > > + BME280_HUMID, > > > > +}; > > > > > > Hmm... Why do we need to actually copy the IIO ones? Can't we use IIO ones > > > directly (or in some way)? > > > > What do you mean exactly by copying the IIO ones? These values are used as > > indexes to enable channels in the avail_scan_masks below. > > Yeah, I have now an answer to my question. The IIO drivers provide these lists > as mapping between available channels (as starting from 0) and real channels > as per IIO specifications (which can be anything, although limited currently > by 40 or so). > These are the scan indexes. It would be better to specify them as such in the channel definitions so that the two sets of values are forced to match. Jonathan