Lines Matching defs:dpot
11 * It is assumed that the dpot is used as a voltage divider between the
12 * current dpot wiper setting and the maximum resistance of the dpot. The
39 struct iio_channel *dpot;
62 return iio_read_channel_raw(dac->dpot, val);
65 ret = iio_read_channel_scale(dac->dpot, val, val2);
105 return iio_read_avail_channel_raw(dac->dpot, vals, length);
119 return iio_write_channel_raw(dac->dpot, val);
141 ret = iio_read_max_channel_raw(dac->dpot, &max);
143 dev_err(dev, "dpot does not indicate its raw maximum value\n");
147 switch (iio_read_channel_scale(dac->dpot, &val, &val2)) {
159 dev_err(dev, "dpot has a scale that is too weird\n");
191 dac->dpot = devm_iio_channel_get(dev, "dpot");
192 if (IS_ERR(dac->dpot))
193 return dev_err_probe(&pdev->dev, PTR_ERR(dac->dpot),
194 "failed to get dpot input channel\n");
196 ret = iio_get_channel_type(dac->dpot, &type);
201 dev_err(dev, "dpot is of the wrong type\n");
241 { .compatible = "dpot-dac" },
250 .name = "iio-dpot-dac",