Skip to content

Commit ec9f2e7

Browse files
nordic-aukogmarull
authored andcommitted
[nrf fromtree] drivers: mfd: npm2100: Fix shiphold flag
Fix checking of shiphold active level. Signed-off-by: Audun Korneliussen <[email protected]> (cherry picked from commit db4d24d)
1 parent 67872be commit ec9f2e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mfd/mfd_npm2100.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ static int config_shphold(const struct device *dev)
218218
}
219219

220220
reg = config->shiphold_hibernate_wakeup ? WAKEUP_HIBERNATE_PIN : WAKEUP_HIBERNATE_NOPIN;
221-
if ((config->shiphold_flags & GPIO_ACTIVE_HIGH) != 0U) {
221+
if ((config->shiphold_flags & GPIO_ACTIVE_LOW) == 0U) {
222222
reg |= WAKEUP_EDGE_RISING;
223223
}
224224

0 commit comments

Comments
 (0)