On 22.09.19 11:18, Lorenzo Bianconi wrote: > Move active low and open drain register definitions in hw_settings > register map in order to avoid to access them if the sensor does not > support them > > Fixes: 52f4b1f19679 ("iio: imu: st_lsm6dsx: add support for accel/gyro unit of lsm9ds1") > Signed-off-by: Lorenzo Bianconi <lorenzo@xxxxxxxxxx> > --- > drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h | 2 + > .../iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c | 29 ++++++----- > drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c | 48 +++++++++++++++++++ > 3 files changed, 67 insertions(+), 12 deletions(-) > Tested-by: Martin Kepplinger <martin.kepplinger@xxxxxxx>