Home
last modified time | relevance | path

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

/linux/drivers/iio/light/
H A Dtsl2583.c107 struct gainadj { struct
114 static const struct gainadj gainadj[] = { argument
250 (gainadj[chip->als_settings.als_gain].ch0 >> 1)) in tsl2583_get_lux()
251 / gainadj[chip->als_settings.als_gain].ch0; in tsl2583_get_lux()
253 (gainadj[chip->als_settings.als_gain].ch1 >> 1)) in tsl2583_get_lux()
254 / gainadj[chip->als_settings.als_gain].ch1; in tsl2583_get_lux()
712 *val = gainadj[chip->als_settings.als_gain].mean; in tsl2583_read_raw()
772 for (i = 0; i < ARRAY_SIZE(gainadj); i++) { in tsl2583_write_raw()
773 if (gainadj[i].mean == val) { in tsl2583_write_raw()