mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 07:04:24 +00:00
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>
This commit is contained in:
parent
0d92aa2c27
commit
2eb4c9f2a5
1 changed files with 4 additions and 0 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue