Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/iio/adc/
Dep93xx_adc.c78 static int ep93xx_read_raw(struct iio_dev *iiodev, in ep93xx_read_raw() argument
82 struct ep93xx_adc_priv *priv = iio_priv(iiodev); in ep93xx_read_raw()
124 dev_err(&iiodev->dev, "Conversion timeout\n"); in ep93xx_read_raw()
156 struct iio_dev *iiodev; in ep93xx_adc_probe() local
160 iiodev = devm_iio_device_alloc(&pdev->dev, sizeof(*priv)); in ep93xx_adc_probe()
161 if (!iiodev) in ep93xx_adc_probe()
163 priv = iio_priv(iiodev); in ep93xx_adc_probe()
169 iiodev->name = dev_name(&pdev->dev); in ep93xx_adc_probe()
170 iiodev->modes = INDIO_DIRECT_MODE; in ep93xx_adc_probe()
171 iiodev->info = &ep93xx_adc_info; in ep93xx_adc_probe()
[all …]
/linux-5.19.10/drivers/iio/common/scmi_sensors/
Dscmi_iio.c573 struct iio_dev *iiodev; in scmi_alloc_iiodev() local
578 iiodev = devm_iio_device_alloc(dev, sizeof(*sensor)); in scmi_alloc_iiodev()
579 if (!iiodev) in scmi_alloc_iiodev()
582 iiodev->modes = INDIO_DIRECT_MODE; in scmi_alloc_iiodev()
583 sensor = iio_priv(iiodev); in scmi_alloc_iiodev()
588 sensor->indio_dev = iiodev; in scmi_alloc_iiodev()
591 iiodev->num_channels = sensor_info->num_axis + 1; in scmi_alloc_iiodev()
592 iiodev->name = sensor_info->name; in scmi_alloc_iiodev()
593 iiodev->info = &scmi_iio_info; in scmi_alloc_iiodev()
597 sizeof(*iio_channels) * (iiodev->num_channels), in scmi_alloc_iiodev()
[all …]
/linux-5.19.10/drivers/iio/chemical/
Dsunrise_co2.c238 static ssize_t sunrise_cal_factory_write(struct iio_dev *iiodev, in sunrise_cal_factory_write() argument
243 struct sunrise_dev *sunrise = iio_priv(iiodev); in sunrise_cal_factory_write()
263 static ssize_t sunrise_cal_background_write(struct iio_dev *iiodev, in sunrise_cal_background_write() argument
268 struct sunrise_dev *sunrise = iio_priv(iiodev); in sunrise_cal_background_write()
320 static ssize_t sunrise_error_status_read(struct iio_dev *iiodev, in sunrise_error_status_read() argument
325 struct sunrise_dev *sunrise = iio_priv(iiodev); in sunrise_error_status_read()