Commit a9e19f63 authored by Marius Hoch's avatar Marius Hoch Committed by Jonathan Cameron

iio: magnetometer: 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: default avatarMarius Hoch <mail@mariushoch.de>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Tested-by: default avatarHans de Goede <hansg@kernel.org>
Link: https://lore.kernel.org/r/20230415231130.115094-3-mail@mariushoch.deSigned-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 9445368b
...@@ -427,6 +427,7 @@ static const struct st_sensor_settings st_magn_sensors_settings[] = { ...@@ -427,6 +427,7 @@ static const struct st_sensor_settings st_magn_sensors_settings[] = {
.wai_addr = ST_SENSORS_DEFAULT_WAI_ADDRESS, .wai_addr = ST_SENSORS_DEFAULT_WAI_ADDRESS,
.sensors_supported = { .sensors_supported = {
[0] = LSM9DS0_IMU_DEV_NAME, [0] = LSM9DS0_IMU_DEV_NAME,
[1] = LSM303D_IMU_DEV_NAME,
}, },
.ch = (struct iio_chan_spec *)st_magn_4_16bit_channels, .ch = (struct iio_chan_spec *)st_magn_4_16bit_channels,
.odr = { .odr = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment