Lines Matching refs:iio_dev
238 static ssize_t sunrise_cal_factory_write(struct iio_dev *iiodev, in sunrise_cal_factory_write()
263 static ssize_t sunrise_cal_background_write(struct iio_dev *iiodev, in sunrise_cal_background_write()
320 static ssize_t sunrise_error_status_read(struct iio_dev *iiodev, in sunrise_error_status_read()
395 static int sunrise_read_raw(struct iio_dev *iio_dev, in sunrise_read_raw() argument
399 struct sunrise_dev *sunrise = iio_priv(iio_dev); in sunrise_read_raw()
477 struct iio_dev *iio_dev; in sunrise_probe() local
486 iio_dev = devm_iio_device_alloc(&client->dev, sizeof(*sunrise)); in sunrise_probe()
487 if (!iio_dev) in sunrise_probe()
490 sunrise = iio_priv(iio_dev); in sunrise_probe()
511 iio_dev->info = &sunrise_info; in sunrise_probe()
512 iio_dev->name = DRIVER_NAME; in sunrise_probe()
513 iio_dev->channels = sunrise_channels; in sunrise_probe()
514 iio_dev->num_channels = ARRAY_SIZE(sunrise_channels); in sunrise_probe()
515 iio_dev->modes = INDIO_DIRECT_MODE; in sunrise_probe()
517 return devm_iio_device_register(&client->dev, iio_dev); in sunrise_probe()