]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
gpio: mxc: parenthesize macro argument
authorLothar Waßmann <LW@KARO-electronics.de>
Thu, 22 Aug 2013 14:17:43 +0000 (16:17 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 22 Aug 2013 14:17:43 +0000 (16:17 +0200)
drivers/gpio/mxc_gpio.c

index 46c0255adc35e43fc6367f2c54ca03cf95203410..dcb18a19ca2bfa3aaafccc42f24d201ddded0332 100644 (file)
@@ -18,7 +18,7 @@ enum mxc_gpio_direction {
        MXC_GPIO_DIRECTION_OUT,
 };
 
-#define GPIO_TO_PORT(n)                (n / 32)
+#define GPIO_TO_PORT(n)                ((n) / 32)
 
 /* GPIO port description */
 static unsigned long gpio_ports[] = {