include: drivers: gpio: fix gpio_dt_flags_t overflow

when GPIO_INT_WAKEUP flag is used in a DT gpios property
the gpio_dt_flags_t var that holds the flags overflows
Hence moving GPIO_INT_WAKEUP flag from bit 28 to bit 6

Signed-off-by: Abderrahmane Jarmouni <abderrahmane.jarmouni-ext@st.com>
This commit is contained in:
Abderrahmane Jarmouni 2024-05-16 14:33:31 +02:00 committed by Alberto Escolar
parent 96c26c2268
commit 39e472ffba

View File

@ -79,12 +79,12 @@
/** @} */
/* Note: Bits 15 downto 8 are reserved for SoC specific flags. */
/**
* Configures GPIO interrupt to wakeup the system from low power mode.
*/
#define GPIO_INT_WAKEUP (1 << 28)
#define GPIO_INT_WAKEUP (1 << 6)
/* Note: Bits 15 downto 8 are reserved for SoC specific flags. */
/**
* @}