aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorCarlos Song <[email protected]>2022-12-08 15:19:08 +0800
committerJonathan Cameron <[email protected]>2022-12-28 17:20:04 +0000
commita53f945879c0cb9de3a4c05a665f5157884b5208 (patch)
tree88c57089bbc8f5c4a26f2f57b5dc4f3a394eafab /tools/testing/selftests/bpf/progs/test_autoload.c
parent37a94d86d7050665d6d01378b2c916c28e454f10 (diff)
iio: imu: fxos8700: fix IMU data bits returned to user space
ACCEL output data registers contain the X-axis, Y-axis, and Z-axis 14-bit left-justified sample data and MAGN output data registers contain the X-axis, Y-axis, and Z-axis 16-bit sample data. The ACCEL raw register output data should be divided by 4 before sent to userspace. Apply a 2 bits signed right shift to the raw data from ACCEL output data register but keep that from MAGN sensor as the origin. Fixes: 84e5ddd5c46e ("iio: imu: Add support for the FXOS8700 IMU") Signed-off-by: Carlos Song <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions