iio:magnetometer: st_magn: add BDU settings
authorMartin Kelly <martin@martingkelly.com>
Fri, 26 Oct 2018 02:38:11 +0000 (19:38 -0700)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 11 Nov 2018 15:29:43 +0000 (15:29 +0000)
commit2eb4c9f2a5d7893e3bed451216ec248a3ce44ed2
tree4fac85a7fd260eb1ad90de4e0066bdab31a4c8a5
parent0d92aa2c272faea47cd5e9acb482acdb9eed2c1d
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>
drivers/iio/magnetometer/st_magn_core.c