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:
parent
ab859fabc1
commit
ff4294a7fe
5 changed files with 44 additions and 18 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue