Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/iio/light/
Dlv0104cs.c52 static const struct lv0104cs_mapping lv0104cs_calibscales[] = { variable
247 *val = lv0104cs_calibscales[lv0104cs->calibscale].val; in lv0104cs_read_raw()
248 *val2 = lv0104cs_calibscales[lv0104cs->calibscale].val2; in lv0104cs_read_raw()
282 for (i = 0; i < ARRAY_SIZE(lv0104cs_calibscales) - 1; i++) { in lv0104cs_set_calibscale()
283 floor = lv0104cs_calibscales[i].val * 1000000 in lv0104cs_set_calibscale()
284 + lv0104cs_calibscales[i].val2; in lv0104cs_set_calibscale()
285 ceil = lv0104cs_calibscales[i + 1].val * 1000000 in lv0104cs_set_calibscale()
286 + lv0104cs_calibscales[i + 1].val2; in lv0104cs_set_calibscale()
302 if (i == ARRAY_SIZE(lv0104cs_calibscales) - 1) in lv0104cs_set_calibscale()
309 lv0104cs_calibscales[index].regval); in lv0104cs_set_calibscale()
[all …]