Lines Matching refs:dpot
39 struct iio_channel *dpot; member
62 return iio_read_channel_raw(dac->dpot, val); in dpot_dac_read_raw()
65 ret = iio_read_channel_scale(dac->dpot, val, val2); in dpot_dac_read_raw()
104 return iio_read_avail_channel_raw(dac->dpot, vals, length); in dpot_dac_read_avail()
118 return iio_write_channel_raw(dac->dpot, val); in dpot_dac_write_raw()
140 ret = iio_read_max_channel_raw(dac->dpot, &max); in dpot_dac_channel_max_ohms()
146 switch (iio_read_channel_scale(dac->dpot, &val, &val2)) { in dpot_dac_channel_max_ohms()
193 dac->dpot = devm_iio_channel_get(dev, "dpot"); in dpot_dac_probe()
194 if (IS_ERR(dac->dpot)) { in dpot_dac_probe()
195 if (PTR_ERR(dac->dpot) != -EPROBE_DEFER) in dpot_dac_probe()
197 return PTR_ERR(dac->dpot); in dpot_dac_probe()
200 ret = iio_get_channel_type(dac->dpot, &type); in dpot_dac_probe()