drivers: sensor: hts221: update to new GPIO API

Correct DRDY active level to default active-high, switch to new
interrupt configuration.

Also fix a common bug where an already-active DRDY signal is not
properly handled.

Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
Peter Bigot 2019-10-15 08:53:18 -05:00 committed by Carles Cufí
commit ff4294a7fe
5 changed files with 44 additions and 18 deletions

View file

@ -94,7 +94,7 @@
compatible = "st,hts221";
reg = <0x5f>;
label = "HTS221";
drdy-gpios = <&gpioa 2 GPIO_ACTIVE_LOW>;
drdy-gpios = <&gpioa 2 GPIO_ACTIVE_HIGH>;
};
lps22hb-press@5d {