]> git.baikalelectronics.ru Git - kernel.git/commit
iio: accel: sca3300: Extend the trigger buffer from 16 to 32 bytes
authorLI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>
Fri, 1 Jul 2022 02:30:30 +0000 (02:30 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 19 Jul 2022 08:38:53 +0000 (09:38 +0100)
commit9031f4476cd4068d1b6a0d1b7c6d8eaa1c107fba
tree7a5dd1a401d818f128078ee05d0f8fd5805639ec
parentc808398e768dffa4ae1f27e7cecfd92868571de2
iio: accel: sca3300: Extend the trigger buffer from 16 to 32 bytes

After added inclination angle channels, the trigger buffer size is
insufficient. Extend the buffer size from 16 to 32 bytes, and change
the trigger buffer from the struct to a u8 array to adapt the sensor
with/without inclination angles output.
New trigger buffer data:
  - SCA3300: 3 accel channels, temp, and timestamp.
  - SCL3300: 3 accel channels, temp, 3 incli channels, and timestamp.
Readjustment the scan index to make it consistent with the buffer data.

Signed-off-by: LI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>
Link: https://lore.kernel.org/r/20220701023030.2527019-2-Qing-wu.Li@leica-geosystems.com.cn
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/sca3300.c