Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/iio/light/ !
Drpr0521.c79 struct rpr0521_gain { struct
84 static const struct rpr0521_gain rpr0521_als_gain[4] = { argument
91 static const struct rpr0521_gain rpr0521_pxs_gain[3] = {
127 const struct rpr0521_gain *gain;
129 } rpr0521_gain[] = { variable
587 ret = regmap_read(data->regmap, rpr0521_gain[chan].reg, &reg); in rpr0521_get_gain()
591 idx = (rpr0521_gain[chan].mask & reg) >> rpr0521_gain[chan].shift; in rpr0521_get_gain()
592 *val = rpr0521_gain[chan].gain[idx].scale; in rpr0521_get_gain()
593 *val2 = rpr0521_gain[chan].gain[idx].uscale; in rpr0521_get_gain()
604 for (i = 0; i < rpr0521_gain[chan].size; i++) in rpr0521_set_gain()
[all …]