Commit 2eb4c9f2 authored by Martin Kelly's avatar Martin Kelly Committed by Jonathan Cameron

iio:magnetometer: st_magn: add BDU settings

LIS3MDL and LSM9DS1 are missing BDU settings in their register maps, so add
them. I don't have a LIS3MDL sensor to test, but this works correctly on
the LSM9DS1, which has the same register map.
Signed-off-by: default avatarMartin Kelly <martin@martingkelly.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 0d92aa2c
...@@ -316,6 +316,10 @@ static const struct st_sensor_settings st_magn_sensors_settings[] = { ...@@ -316,6 +316,10 @@ static const struct st_sensor_settings st_magn_sensors_settings[] = {
}, },
}, },
}, },
.bdu = {
.addr = 0x24,
.mask = 0x40,
},
.drdy_irq = { .drdy_irq = {
/* drdy line is routed drdy pin */ /* drdy line is routed drdy pin */
.stat_drdy = { .stat_drdy = {
......
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