On Sat, 19 Mar 2022 23:40:20 +0530 Jagath Jog J <jagathjog1996@xxxxxxxxx> wrote: > Changing the scale macro values to match the bma400 sensitivity > for 1 LSB of all the available ranges. > > Signed-off-by: Jagath Jog J <jagathjog1996@xxxxxxxxx> This needs a fixes tag and should be the first patch in the series. I'd also like the maths to be described as these numbers are (I assume) calculated based on the range and the bit depth of the sensor? If you can add a comment in the code, then we'll have a convenient reference alongside the numbers. > --- > drivers/iio/accel/bma400.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/iio/accel/bma400.h b/drivers/iio/accel/bma400.h > index e938da5a57b4..cfc2c9bacec8 100644 > --- a/drivers/iio/accel/bma400.h > +++ b/drivers/iio/accel/bma400.h > @@ -83,8 +83,8 @@ > #define BMA400_ACC_ODR_MIN_WHOLE_HZ 25 > #define BMA400_ACC_ODR_MIN_HZ 12 > > -#define BMA400_SCALE_MIN 38357 > -#define BMA400_SCALE_MAX 306864 > +#define BMA400_SCALE_MIN 9583 > +#define BMA400_SCALE_MAX 76669 > > #define BMA400_NUM_REGULATORS 2 > #define BMA400_VDD_REGULATOR 0