]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: accel: bma400: Fix the scale min and max macro values
authorJagath Jog J <jagathjog1996@gmail.com>
Thu, 5 May 2022 13:30:12 +0000 (19:00 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:41:23 +0000 (14:41 +0200)
commit5b93cf01ef409f55535d92fa2a0838d6dd5d2bd6
treeda8885e2eea8e020820fab4317f2e9a158262463
parent93e4ac19dae0ff957016192671893e7154b5f29a
iio: accel: bma400: Fix the scale min and max macro values

[ Upstream commit 747c7cf1592e226d40543231b26502b332d0ea2f ]

Changing the scale macro values to match the bma400 sensitivity
for 1 LSB of all the available ranges.

Fixes: 465c811f1f20 ("iio: accel: Add driver for the BMA400")
Signed-off-by: Jagath Jog J <jagathjog1996@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20220505133021.22362-2-jagathjog1996@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/iio/accel/bma400.h