arch/imx6: Fix a compilation error with UBSan
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
parent
e3f0f86514
commit
e7bf464c7a
|
@ -50,10 +50,10 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define GPIO_MODE_SHIFT (30) /* Bits 30-31: Pin mode */
|
#define GPIO_MODE_SHIFT (30) /* Bits 30-31: Pin mode */
|
||||||
#define GPIO_MODE_MASK (3 << GPIO_MODE_SHIFT)
|
#define GPIO_MODE_MASK (3u << GPIO_MODE_SHIFT)
|
||||||
# define GPIO_INPUT (0 << GPIO_MODE_SHIFT) /* GPIO input */
|
# define GPIO_INPUT (0u << GPIO_MODE_SHIFT) /* GPIO input */
|
||||||
# define GPIO_OUTPUT (1 << GPIO_MODE_SHIFT) /* GPIO output */
|
# define GPIO_OUTPUT (1u << GPIO_MODE_SHIFT) /* GPIO output */
|
||||||
# define GPIO_PERIPH (2 << GPIO_MODE_SHIFT) /* Peripheral */
|
# define GPIO_PERIPH (2u << GPIO_MODE_SHIFT) /* Peripheral */
|
||||||
|
|
||||||
/* Initial Output Value:
|
/* Initial Output Value:
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue