aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorJongpil Jung <[email protected]>2022-01-22 13:34:44 -0800
committerJonathan Cameron <[email protected]>2022-01-30 12:39:16 +0000
commit19d32860dc7826ef48ea3fb80d9f1b082c4a2cf8 (patch)
tree021285c97e555dcba2bdf6a2f8db1ba76422f5a2 /tools/perf/scripts/python/mem-phys-addr.py
parenta5e9b2ddbbc789f34be2333263232435d8edf57c (diff)
iio: sx9360: fix iio event generation
To convert SX9360 status register ["REG_STAT"], into a channel index, we need to right shift by |stat_offset|, not left shift. Also the PROXSTAT bit (3) is for channel 1 (PHM, Phase Measured), not (PHR, Phase Reference, channel 0), so the offset is 2 instead of 3. Fixes: 1cdb4c47f7f5 ("iio:proximity:sx9360: Add sx9360 support") Signed-off-by: Jongpil Jung <[email protected]> Signed-off-by: Gwendal Grignou <[email protected]> Link: https://lore.kernel.org/r/[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