diff options
| author | Alexandre Belloni <[email protected]> | 2013-12-06 19:31:00 +0000 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2013-12-07 10:38:48 +0000 |
| commit | c8231a9af8147f8a401fc55931ec44abfb937660 (patch) | |
| tree | 987b6742d77e67fcb4152a52ae7e1bb5e6d59305 /tools/perf/scripts/python | |
| parent | 098d3beccfb6d678a926c4cc4f5e70c3b752fd5e (diff) | |
iio: mxs-lradc: compute temperature from channel 8 and 9
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_OFFSET so that it can be processed by hwmon through the in kernel
provider/consumer mechanism.
Signed-off-by: Alexandre Belloni <[email protected]>
Signed-off-by: Maxime Ripard <[email protected]>
Reviewed-by: Lars-Peter Clausen <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions