arch/imx6: Fix a compilation error with UBSan

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi 2023-03-03 15:33:34 +08:00 committed by Petro Karashchenko
parent e3f0f86514
commit e7bf464c7a
1 changed files with 4 additions and 4 deletions

View File

@ -50,10 +50,10 @@
*/
#define GPIO_MODE_SHIFT (30) /* Bits 30-31: Pin mode */
#define GPIO_MODE_MASK (3 << GPIO_MODE_SHIFT)
# define GPIO_INPUT (0 << GPIO_MODE_SHIFT) /* GPIO input */
# define GPIO_OUTPUT (1 << GPIO_MODE_SHIFT) /* GPIO output */
# define GPIO_PERIPH (2 << GPIO_MODE_SHIFT) /* Peripheral */
#define GPIO_MODE_MASK (3u << GPIO_MODE_SHIFT)
# define GPIO_INPUT (0u << GPIO_MODE_SHIFT) /* GPIO input */
# define GPIO_OUTPUT (1u << GPIO_MODE_SHIFT) /* GPIO output */
# define GPIO_PERIPH (2u << GPIO_MODE_SHIFT) /* Peripheral */
/* Initial Output Value:
*