Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/iio/light/
Drpr0521.c82 struct rpr0521_gain { struct
87 static const struct rpr0521_gain rpr0521_als_gain[4] = { argument
94 static const struct rpr0521_gain rpr0521_pxs_gain[3] = {
130 const struct rpr0521_gain *gain;
132 } rpr0521_gain[] = { variable
586 ret = regmap_read(data->regmap, rpr0521_gain[chan].reg, &reg); in rpr0521_get_gain()
590 idx = (rpr0521_gain[chan].mask & reg) >> rpr0521_gain[chan].shift; in rpr0521_get_gain()
591 *val = rpr0521_gain[chan].gain[idx].scale; in rpr0521_get_gain()
592 *val2 = rpr0521_gain[chan].gain[idx].uscale; in rpr0521_get_gain()
603 for (i = 0; i < rpr0521_gain[chan].size; i++) in rpr0521_set_gain()
[all …]