diff options
author | Martin Kelly <martin@martingkelly.com> | 2018-10-26 04:38:11 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2018-11-11 16:29:43 +0100 |
commit | 2eb4c9f2a5d7893e3bed451216ec248a3ce44ed2 (patch) | |
tree | 4fac85a7fd260eb1ad90de4e0066bdab31a4c8a5 | |
parent | iio:magnetometer: st_magn: add LSM9DS1 support (diff) | |
download | linux-2eb4c9f2a5d7893e3bed451216ec248a3ce44ed2.tar.xz linux-2eb4c9f2a5d7893e3bed451216ec248a3ce44ed2.zip |
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: Martin Kelly <martin@martingkelly.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
-rw-r--r-- | drivers/iio/magnetometer/st_magn_core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/iio/magnetometer/st_magn_core.c b/drivers/iio/magnetometer/st_magn_core.c index 45c074e0d5b2..5d056bdb3b37 100644 --- a/drivers/iio/magnetometer/st_magn_core.c +++ b/drivers/iio/magnetometer/st_magn_core.c @@ -316,6 +316,10 @@ static const struct st_sensor_settings st_magn_sensors_settings[] = { }, }, }, + .bdu = { + .addr = 0x24, + .mask = 0x40, + }, .drdy_irq = { /* drdy line is routed drdy pin */ .stat_drdy = { |