Skip to content
Commit 45f3b71b authored by Marcel Krüger's avatar Marcel Krüger Committed by Benjamin Cabé
Browse files

input_gpio: Fix not using latest pin state on pm resume



When the device was suspended and the pin level changed during
that time, the pin level of course isn't updated in the pins cb_data.
Once the device is resumed, this leads to potentially having
a wrong value in the pin state data leading to swallowing the first
event due to comparing the stored level vs. the new level before
reporting.

Also added some `const`s and deleted an unused struct element.

Signed-off-by: default avatarMarcel Krüger <marcel@mkgr.dev>
parent b31251b4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment