Searched refs:iiodev (Results 1 – 3 of 3) sorted by relevance
78 static int ep93xx_read_raw(struct iio_dev *iiodev, in ep93xx_read_raw() argument82 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() local160 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 …]
573 struct iio_dev *iiodev; in scmi_alloc_iiodev() local578 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 …]
238 static ssize_t sunrise_cal_factory_write(struct iio_dev *iiodev, in sunrise_cal_factory_write() argument243 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() argument268 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() argument325 struct sunrise_dev *sunrise = iio_priv(iiodev); in sunrise_error_status_read()