Lines Matching refs:iio_dev
75 static int dac7612_read_raw(struct iio_dev *iio_dev, in dac7612_read_raw() argument
83 priv = iio_priv(iio_dev); in dac7612_read_raw()
96 static int dac7612_write_raw(struct iio_dev *iio_dev, in dac7612_write_raw() argument
100 struct dac7612 *priv = iio_priv(iio_dev); in dac7612_write_raw()
126 struct iio_dev *iio_dev; in dac7612_probe() local
131 iio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*priv)); in dac7612_probe()
132 if (!iio_dev) in dac7612_probe()
135 priv = iio_priv(iio_dev); in dac7612_probe()
149 spi_set_drvdata(spi, iio_dev); in dac7612_probe()
150 iio_dev->info = &dac7612_info; in dac7612_probe()
151 iio_dev->modes = INDIO_DIRECT_MODE; in dac7612_probe()
152 iio_dev->channels = dac7612_channels; in dac7612_probe()
153 iio_dev->num_channels = ARRAY_SIZE(priv->cache); in dac7612_probe()
154 iio_dev->name = spi_get_device_id(spi)->name; in dac7612_probe()
164 return devm_iio_device_register(&spi->dev, iio_dev); in dac7612_probe()