Home
last modified time | relevance | path

Searched refs:isl76682_range_table (Results 1 – 1 of 1) sorted by relevance

/linux-6.12.1/drivers/iio/light/
Disl76682.c62 static struct isl76682_range isl76682_range_table[] = { variable
109 for (i = 0; i < ARRAY_SIZE(isl76682_range_table); i++) { in isl76682_write_raw()
110 if (chan->type == IIO_LIGHT && val2 != isl76682_range_table[i].als) in isl76682_write_raw()
112 if (chan->type == IIO_INTENSITY && val2 != isl76682_range_table[i].ir) in isl76682_write_raw()
116 chip->range = isl76682_range_table[i].range; in isl76682_write_raw()
146 for (i = 0; i < ARRAY_SIZE(isl76682_range_table); i++) { in isl76682_read_raw()
147 if (chip->range != isl76682_range_table[i].range) in isl76682_read_raw()
153 *val2 = isl76682_range_table[i].als; in isl76682_read_raw()
156 *val2 = isl76682_range_table[i].ir; in isl76682_read_raw()