]> git.baikalelectronics.ru Git - kernel.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:23:43 +0000 (14:23 +0200)
commit3b17f75c0098a8b04ec5eb0dbe6352495c748f3d
tree429e98e7ca91526bc7319a94376f92c105ebd461
parent2084e0beca2d5eebfe9c259ac426f0cfef7537eb
iio: accel: bma400: Fix the scale min and max macro values

[ Upstream commit dea93f1f63a967a67aed82a5a2534b5a8f39f471 ]

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

Fixes: 180c5df27836 ("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