Re: [PATCHv2] iio: mxs-lradc: compute temperature from channel 8 and 9

2013-12-07 Thread Jonathan Cameron
On 12/06/13 19:31, Alexandre Belloni wrote: > The mxs LRADC is able to read an internal die temperature sensor. The > temperature has to be calculated from the value read on channel 8 and channel > 9. > To be able to expose the result to hwmon, implement iio channel 8 as > (channel 9 - channel 8).

[PATCHv2] iio: mxs-lradc: compute temperature from channel 8 and 9

2013-12-06 Thread Alexandre Belloni
The mxs LRADC is able to read an internal die temperature sensor. The temperature has to be calculated from the value read on channel 8 and channel 9. To be able to expose the result to hwmon, implement iio channel 8 as (channel 9 - channel 8). Then, implement IIO_CHAN_INFO_SCALE and IIO_CHAN_INFO_