Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/iio/adc/
Dep93xx_adc.c79 static int ep93xx_read_raw(struct iio_dev *iiodev, in ep93xx_read_raw() argument
83 struct ep93xx_adc_priv *priv = iio_priv(iiodev); in ep93xx_read_raw()
125 dev_err(&iiodev->dev, "Conversion timeout\n"); in ep93xx_read_raw()
157 struct iio_dev *iiodev; in ep93xx_adc_probe() local
161 iiodev = devm_iio_device_alloc(&pdev->dev, sizeof(*priv)); in ep93xx_adc_probe()
162 if (!iiodev) in ep93xx_adc_probe()
164 priv = iio_priv(iiodev); in ep93xx_adc_probe()
170 iiodev->name = dev_name(&pdev->dev); in ep93xx_adc_probe()
171 iiodev->modes = INDIO_DIRECT_MODE; in ep93xx_adc_probe()
172 iiodev->info = &ep93xx_adc_info; in ep93xx_adc_probe()
[all …]
/linux-6.6.21/drivers/iio/common/scmi_sensors/
Dscmi_iio.c577 struct iio_dev *iiodev; in scmi_alloc_iiodev() local
582 iiodev = devm_iio_device_alloc(dev, sizeof(*sensor)); in scmi_alloc_iiodev()
583 if (!iiodev) in scmi_alloc_iiodev()
586 iiodev->modes = INDIO_DIRECT_MODE; in scmi_alloc_iiodev()
587 sensor = iio_priv(iiodev); in scmi_alloc_iiodev()
592 sensor->indio_dev = iiodev; in scmi_alloc_iiodev()
596 iiodev->num_channels = sensor_info->num_axis + 1; in scmi_alloc_iiodev()
597 iiodev->name = sensor_info->name; in scmi_alloc_iiodev()
598 iiodev->info = &scmi_iio_info; in scmi_alloc_iiodev()
602 sizeof(*iio_channels) * (iiodev->num_channels), in scmi_alloc_iiodev()
[all …]
/linux-6.6.21/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()