aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/basic/docproc.c
diff options
context:
space:
mode:
authorFrancesco Lavra <[email protected]>2025-10-17 17:32:08 +0000
committerJonathan Cameron <[email protected]>2025-10-19 10:46:18 +0000
commit3af0c1fb1cdc351b64ff1a4bc06d491490c1f10a (patch)
tree880b5fb9fe755524b9fc188422167c4a475a56a5 /scripts/basic/docproc.c
parentiio: accel: fix ADXL355 startup race condition (diff)
downloadkernel-3af0c1fb1cdc351b64ff1a4bc06d491490c1f10a.tar.gz
kernel-3af0c1fb1cdc351b64ff1a4bc06d491490c1f10a.zip
iio: imu: st_lsm6dsx: fix array size for st_lsm6dsx_settings fields
The `decimator` and `batch` fields of struct st_lsm6dsx_settings are arrays indexed by sensor type, not by sensor hardware identifier; moreover, the `batch` field is only used for the accelerometer and gyroscope. Change the array size for `decimator` from ST_LSM6DSX_MAX_ID to ST_LSM6DSX_ID_MAX, and change the array size for `batch` from ST_LSM6DSX_MAX_ID to 2; move the enum st_lsm6dsx_sensor_id definition so that the ST_LSM6DSX_ID_MAX value is usable within the struct st_lsm6dsx_settings definition. Fixes: 801a6e0af0c6c ("iio: imu: st_lsm6dsx: add support to LSM6DSO") Signed-off-by: Francesco Lavra <[email protected]> Acked-by: Lorenzo Bianconi <[email protected]> Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'scripts/basic/docproc.c')
0 files changed, 0 insertions, 0 deletions