lkml.org 
[lkml]   [2022]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v1 2/5] iio: accel: bma400: changing scale min and max macro values
    Date
    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@gmail.com>
    ---
    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
    --
    2.17.1
    \
     
     \ /
      Last update: 2022-03-19 19:11    [W:4.386 / U:0.592 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site