drivers: sensor: hts221: correct bit for CTRL_REG1.BDU

Setting bit 3 instead of bit 2 modifies a reserved section of the
register, with the impact that the ODR is not as configured.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
This commit is contained in:
Peter A. Bigot 2018-11-24 14:08:52 -06:00 committed by Carles Cufí
commit 4cd19eaeee

View file

@ -19,7 +19,7 @@
#define HTS221_REG_CTRL1 0x20
#define HTS221_PD_BIT BIT(7)
#define HTS221_BDU_BIT BIT(3)
#define HTS221_BDU_BIT BIT(2)
#define HTS221_ODR_SHIFT 0
#define HTS221_REG_CTRL3 0x22