mbox series

[V1,0/1] iio: accel: sca3300: Extend the trigger buffer

Message ID 20220701023030.2527019-1-Qing-wu.Li@leica-geosystems.com.cn (mailing list archive)
Headers show
Series iio: accel: sca3300: Extend the trigger buffer | expand

Message

LI Qingwu July 1, 2022, 2:30 a.m. UTC
Fix the buffer reading issue for SCA3300:
  - Extend the buffer size from 16 to 32 bytes.
  - Change the buffer struct to a u8 array to adapt different sensors.
  - Readjustment the scan index to make it consistent with the buffer data.
  - Change sca3300_channels to indio_dev->channels.

LI Qingwu (1):
  iio: accel: sca3300: Extend the trigger buffer from 16 to 32 bytes

 drivers/iio/accel/sca3300.c | 29 ++++++++++++++++++-----------
 1 file changed, 18 insertions(+), 11 deletions(-)