diff options
| author | Liam Beguin <[email protected]> | 2022-01-08 15:53:06 -0500 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2022-01-30 14:38:03 +0000 |
| commit | ca85123354e1a65a22170286387b4791997fe864 (patch) | |
| tree | 4c694d037109cf2167aedaa86d8604a75dfa6e01 /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | 14b457fdde38de594a4bc4bd9075019319d978da (diff) | |
iio: inkern: make a best effort on offset calculation
iio_convert_raw_to_processed_unlocked() assumes the offset is an
integer. Make a best effort to get a valid offset value for fractional
cases without breaking implicit truncations.
Fixes: 48e44ce0f881 ("iio:inkern: Add function to read the processed value")
Signed-off-by: Liam Beguin <[email protected]>
Reviewed-by: Peter Rosin <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Cc: <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions