From: kfx Date: Wed, 15 May 2013 06:50:09 +0000 (+0800) Subject: iomux: iomux_switch_gpio_mode X-Git-Tag: firefly_0821_release~7097 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=280e4a5a47f08447f1745fa6c8e6d449aee1b112;p=firefly-linux-kernel-4.4.55.git iomux: iomux_switch_gpio_mode --- diff --git a/arch/arm/plat-rk/include/plat/iomux.h b/arch/arm/plat-rk/include/plat/iomux.h index 70d8d18380e5..c2c5fc5f3e4d 100644 --- a/arch/arm/plat-rk/include/plat/iomux.h +++ b/arch/arm/plat-rk/include/plat/iomux.h @@ -3,7 +3,7 @@ #define INVALID_MODE 0xffffffff -#define iomux_switch_gpio_mode(m) ((m) & 0x03) +#define iomux_switch_gpio_mode(m) ((m) & (~0x03)) int iomux_gpio_to_mode(int gpio); int iomux_mode_to_gpio(unsigned int mode);