Home
last modified time | relevance | path

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

/openbmc/linux/drivers/iio/light/
H A Dlv0104cs.c144 static int lv0104cs_read_adc(struct i2c_client *client, u16 *adc_output) in lv0104cs_read_adc() argument
155 *adc_output = be16_to_cpu(regval); in lv0104cs_read_adc()
164 u16 adc_output; in lv0104cs_get_lux() local
191 ret = lv0104cs_read_adc(lv0104cs->client, &adc_output); in lv0104cs_get_lux()
202 *val = adc_output * 4; in lv0104cs_get_lux()
207 *val = adc_output; in lv0104cs_get_lux()
212 *val = adc_output / 2; in lv0104cs_get_lux()
213 *val2 = (adc_output % 2) * 500000; in lv0104cs_get_lux()
217 *val = adc_output / 8; in lv0104cs_get_lux()
218 *val2 = (adc_output % 8) * 125000; in lv0104cs_get_lux()