On 20/10/16 10:26, Peter Rosin wrote:
> It is assumed the that the dpot is used as a voltage divider between the
> current dpot wiper setting and the maximum resistance of the dpot. The
> divided voltage is provided by a vref regulator.
>
> .--.
>.---. | |
>
On 2016-10-20 16:08, Peter Meerwald-Stadler wrote:
+ u32 max_ohms;
+};
+
+static const struct iio_chan_spec dpot_dac_iio_channel = {
+ .type = IIO_VOLTAGE,
+ .info_mask_separate = BIT(IIO_CHAN_INFO_RAW)
+ | BIT(IIO_CHAN_INFO_SCALE),
+
On 2016-10-20 13:29, Peter Meerwald-Stadler wrote:
>> It is assumed the that the dpot is used as a voltage divider between the
>> current dpot wiper setting and the maximum resistance of the dpot. The
>> divided voltage is provided by a vref regulator.
>>
>> .--.
>>.--
> >> +struct dpot_dac {
> >> + struct regulator *vref;
> >> + struct iio_channel *dpot;
> >
> > const
>
> const? devm_iio_channel_get doesn't return a const iio_channel. What
> am I missing?
ah, I mixed this up with iio_chan_spec
> >> + u32 max_ohms;
> >> +};
> >> +
> >> +static const stru
> It is assumed the that the dpot is used as a voltage divider between the
> current dpot wiper setting and the maximum resistance of the dpot. The
> divided voltage is provided by a vref regulator.
>
> .--.
>.---. | |
>| Vref |--'.---.
>|
It is assumed the that the dpot is used as a voltage divider between the
current dpot wiper setting and the maximum resistance of the dpot. The
divided voltage is provided by a vref regulator.
.--.
.---. | |
| Vref |--'.---.
| regulator |--.
6 matches
Mail list logo