aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorChris Lesiak <[email protected]>2015-06-01 11:27:37 -0500
committerGuenter Roeck <[email protected]>2015-06-02 06:53:50 -0700
commit0315253b19bbc63eedad2f6125c21e280c76e29b (patch)
tree67997e9f452d6db148be106e492df5aaff165c8c /tools/perf/util/trace-event-scripting.c
parente892b75ff579a0c07b633f2e234aeecf78a93a37 (diff)
hwmon: (ntc_thermistor) fix iio raw to microvolts conversion
The function ntc_adc_iio_read was assuming both a 12 bit ADC and that pullup_uv is the same as the ADC reference voltage. If either assumption is false, then the result is incorrect. Attempt to use iio_convert_raw_to_processed to convert the raw value to microvolts. It will fail for iio channels that don't support support IIO_CHAN_INFO_SCALE; in that case fall back to the assumptions. Signed-off-by: Chris Lesiak <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions