aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLinus Walleij <[email protected]>2021-03-08 11:02:18 +0100
committerJonathan Cameron <[email protected]>2021-03-25 19:13:51 +0000
commit635ef601b2387c3215252c9931786524d122c0e7 (patch)
treeb60132242319a0e98ffafdeef59b4fadd28ecde2 /tools/perf/scripts/python
parent86073fa2b538847f4a623c040f66d1ec96e0643a (diff)
iio: Provide iio_read_channel_processed_scale() API
Since the old iio_read_channel_processed() would lose precision if we fall back to reading raw and scaling, we introduce a new API that will pass in a scale factor when reading a processed channel: iio_read_channel_processed_scale(). Refactor iio_read_channel_processed() as a special case with scale factor 1. Cc: Peter Rosin <[email protected]> Cc: Chris Lesiak <[email protected]> Cc: Jonathan Cameron <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/linux-iio/[email protected]/ Signed-off-by: Linus Walleij <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions