summaryrefslogtreecommitdiffstats
path: root/drivers/iio/accel
diff options
context:
space:
mode:
authorMarius Hoch <mail@mariushoch.de>2023-04-16 01:11:25 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2023-05-13 17:56:04 +0100
commit9445368bca2f62cadfcf98e06219f784ae94dce0 (patch)
treebd0dcf5948e9603dd93a492fb5ef33dfa268cc98 /drivers/iio/accel
parentef513aa7aa5038d2f53e9f2932af5006f37ed0b6 (diff)
downloadlinux-9445368bca2f62cadfcf98e06219f784ae94dce0.tar.gz
linux-9445368bca2f62cadfcf98e06219f784ae94dce0.tar.bz2
linux-9445368bca2f62cadfcf98e06219f784ae94dce0.zip
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>
Diffstat (limited to 'drivers/iio/accel')
-rw-r--r--drivers/iio/accel/st_accel_core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/accel/st_accel_core.c b/drivers/iio/accel/st_accel_core.c
index 5f7d81b44b1d..7c4f58c90f94 100644
--- a/drivers/iio/accel/st_accel_core.c
+++ b/drivers/iio/accel/st_accel_core.c
@@ -1007,6 +1007,7 @@ static const struct st_sensor_settings st_accel_sensors_settings[] = {
.wai_addr = ST_SENSORS_DEFAULT_WAI_ADDRESS,
.sensors_supported = {
[0] = LSM9DS0_IMU_DEV_NAME,
+ [1] = LSM303D_IMU_DEV_NAME,
},
.ch = (struct iio_chan_spec *)st_accel_16bit_channels,
.odr = {