Home
last modified time | relevance | path

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

/linux/drivers/iio/dac/
H A Dmax22007.c83 struct iio_chan_spec *iio_chans; member
338 st->iio_chans = devm_kcalloc(dev, num_chan, sizeof(*st->iio_chans), GFP_KERNEL); in max22007_parse_channel_cfg()
339 if (!st->iio_chans) in max22007_parse_channel_cfg()
373 st->iio_chans[i++] = (struct iio_chan_spec) { in max22007_parse_channel_cfg()
459 indio_dev->channels = st->iio_chans; in max22007_probe()
/linux/drivers/input/touchscreen/
H A Dresistive-adc-touch.c50 struct iio_channel *iio_chans; member
211 st->iio_chans = devm_iio_channel_get_all(dev); in grts_probe()
212 if (IS_ERR(st->iio_chans)) in grts_probe()
213 return dev_err_probe(dev, PTR_ERR(st->iio_chans), "can't get iio channels\n"); in grts_probe()
/linux/drivers/iio/adc/
H A Dqcom-spmi-vadc.c119 struct iio_chan_spec *iio_chans; member
493 if (vadc->iio_chans[i].channel == iiospec->args[0]) in vadc_fwnode_xlate()
763 vadc->iio_chans = devm_kcalloc(vadc->dev, vadc->nchannels, in vadc_get_fw_data()
764 sizeof(*vadc->iio_chans), GFP_KERNEL); in vadc_get_fw_data()
765 if (!vadc->iio_chans) in vadc_get_fw_data()
773 iio_chan = vadc->iio_chans; in vadc_get_fw_data()
925 indio_dev->channels = vadc->iio_chans; in vadc_probe()
H A Dqcom-spmi-adc5.c150 struct iio_chan_spec *iio_chans; member
834 adc->iio_chans = devm_kcalloc(adc->dev, adc->nchannels, in adc5_get_fw_data()
835 sizeof(*adc->iio_chans), GFP_KERNEL); in adc5_get_fw_data()
836 if (!adc->iio_chans) in adc5_get_fw_data()
845 iio_chan = adc->iio_chans; in adc5_get_fw_data()
922 indio_dev->channels = adc->iio_chans; in adc5_probe()
H A Dqcom-spmi-adc5-gen3.c64 struct iio_chan_spec *iio_chans; member
564 adc->iio_chans = devm_kcalloc(dev, adc->nchannels, in adc5_get_fw_data()
565 sizeof(*adc->iio_chans), GFP_KERNEL); in adc5_get_fw_data()
566 if (!adc->iio_chans) in adc5_get_fw_data()
576 iio_chan = adc->iio_chans; in adc5_get_fw_data()
811 indio_dev->channels = adc->iio_chans; in adc5_gen3_probe()
H A Dqcom-pm8xxx-xoadc.c408 struct iio_chan_spec *iio_chans; member
839 adc->iio_chans = devm_kcalloc(adc->dev, adc->nchans, in pm8xxx_xoadc_parse_channels()
840 sizeof(*adc->iio_chans), GFP_KERNEL); in pm8xxx_xoadc_parse_channels()
841 if (!adc->iio_chans) in pm8xxx_xoadc_parse_channels()
854 &adc->iio_chans[i], in pm8xxx_xoadc_parse_channels()
938 indio_dev->channels = adc->iio_chans; in pm8xxx_xoadc_probe()