drivers: gpio_nrfx: Pass only pins associated with handler

When notifying the handler that GPIO interrupt has occurred
pass only pins that are associated with this handler.

Fixes: #24634

Signed-off-by: Pawel Dunaj <pawel.dunaj@nordicsemi.no>
This commit is contained in:
Pawel Dunaj 2020-04-23 15:58:00 +02:00 committed by Carles Cufí
commit ed5e247f63

View file

@ -421,7 +421,7 @@ static inline void fire_callbacks(struct device *port, u32_t pins)
*/
if ((cb->pin_mask & pins) & data->int_en) {
__ASSERT(cb->handler, "No callback handler!");
cb->handler(port, cb, pins);
cb->handler(port, cb, cb->pin_mask & pins);
}
}
}