aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sctop.py
diff options
context:
space:
mode:
authorMaxime Roussin-Bélanger <[email protected]>2020-02-19 12:40:08 -0500
committerJonathan Cameron <[email protected]>2020-03-08 17:28:42 +0000
commit328b50e9a0ad1fe8accdf8c19923deebab5e0c01 (patch)
treea58ff8d7e0daa749f38bc74f2b5366bb41b05f21 /tools/perf/scripts/python/sctop.py
parentea52c21268e68cfdc1aabe686b154d73d8bf4d7e (diff)
iio: si1133: read 24-bit signed integer for measurement
The chip is configured in 24 bit mode. The values read from it must always be treated as is. This fixes the issue by replacing the previous 16 bits value by a 24 bits buffer. This changes affects the value output by previous version of the driver, since the least significant byte was missing. The upper half of 16 bit values previously output are now the upper half of a 24 bit value. Fixes: e01e7eaf37d8 ("iio: light: introduce si1133") Reported-by: Simon Goyette <[email protected]> Co-authored-by: Guillaume Champagne <[email protected]> Signed-off-by: Maxime Roussin-Bélanger <[email protected]> Signed-off-by: Guillaume Champagne <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions