Home
last modified time | relevance | path

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

/drivers/iio/adc/
Dpalmas_gpadc.c219 static int palmas_gpadc_enable(struct palmas_gpadc *adc, int adc_chan, in palmas_gpadc_enable() argument
254 val = (adc_chan | PALMAS_GPADC_SW_SELECT_SW_CONV_EN); in palmas_gpadc_enable()
279 static int palmas_gpadc_read_prepare(struct palmas_gpadc *adc, int adc_chan) in palmas_gpadc_read_prepare() argument
283 ret = palmas_gpadc_enable(adc, adc_chan, true); in palmas_gpadc_read_prepare()
290 static void palmas_gpadc_read_done(struct palmas_gpadc *adc, int adc_chan) in palmas_gpadc_read_done() argument
293 palmas_gpadc_enable(adc, adc_chan, false); in palmas_gpadc_read_done()
296 static int palmas_gpadc_calibrate(struct palmas_gpadc *adc, int adc_chan) in palmas_gpadc_calibrate() argument
303 int x1 = adc->adc_info[adc_chan].x1; in palmas_gpadc_calibrate()
304 int x2 = adc->adc_info[adc_chan].x2; in palmas_gpadc_calibrate()
305 int v1 = adc->adc_info[adc_chan].v1; in palmas_gpadc_calibrate()
[all …]
Dqcom-spmi-adc5.c822 const struct adc5_channels *adc_chan; in adc5_get_fw_data() local
859 adc_chan = &adc->data->adc_chans[prop.channel]; in adc5_get_fw_data()
864 iio_chan->info_mask_separate = adc_chan->info_mask; in adc5_get_fw_data()
865 iio_chan->type = adc_chan->type; in adc5_get_fw_data()
/drivers/iio/potentiostat/
Dlmp91000.c70 struct iio_channel *adc_chan; member
179 ret = iio_convert_raw_to_processed(data->adc_chan, in lmp91000_read_raw()
193 return iio_read_channel_offset(data->adc_chan, val, val2); in lmp91000_read_raw()
195 return iio_read_channel_scale(data->adc_chan, val, val2); in lmp91000_read_raw()
367 data->adc_chan = iio_channel_cb_get_channels(data->cb_buffer); in lmp91000_probe()
/drivers/input/touchscreen/
Dtsc2007_iio.c43 int adc_chan = chan->channel; in tsc2007_read_raw() local
46 if (adc_chan >= ARRAY_SIZE(tsc2007_iio_channel)) in tsc2007_read_raw()