iio: accel: st_accel: Add LSM303D
authorMarius Hoch <mail@mariushoch.de>
Sat, 15 Apr 2023 23:11:25 +0000 (01:11 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 13 May 2023 16:56:04 +0000 (17:56 +0100)
commit9445368bca2f62cadfcf98e06219f784ae94dce0
treebd0dcf5948e9603dd93a492fb5ef33dfa268cc98
parentef513aa7aa5038d2f53e9f2932af5006f37ed0b6
iio: accel: st_accel: Add LSM303D

The lsm303d has the same register mapping as the lsm9ds0,
thus we can just re-use that.

Tested on a Lenovo Yoga Tablet 2 1051-F.

Signed-off-by: Marius Hoch <mail@mariushoch.de>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Hans de Goede <hansg@kernel.org>
Link: https://lore.kernel.org/r/20230415231130.115094-2-mail@mariushoch.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/st_accel_core.c
include/linux/iio/common/st_sensors.h