Merge branch 'x86-x32-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[firefly-linux-kernel-4.4.55.git] / drivers / gpio / gpio-kempld.c
index c6d88173f5a2ab53f267987b0323550c1dc7bd33..1e5e51987d315fdce98f67d3c9f8db776fa83de6 100644 (file)
@@ -24,7 +24,7 @@
 #include <linux/mfd/kempld.h>
 
 #define KEMPLD_GPIO_MAX_NUM            16
-#define KEMPLD_GPIO_MASK(x)            (1 << ((x) % 8))
+#define KEMPLD_GPIO_MASK(x)            (BIT((x) % 8))
 #define KEMPLD_GPIO_DIR_NUM(x)         (0x40 + (x) / 8)
 #define KEMPLD_GPIO_LVL_NUM(x)         (0x42 + (x) / 8)
 #define KEMPLD_GPIO_EVT_LVL_EDGE       0x46
@@ -216,4 +216,4 @@ module_platform_driver(kempld_gpio_driver);
 MODULE_DESCRIPTION("KEM PLD GPIO Driver");
 MODULE_AUTHOR("Michael Brunner <michael.brunner@kontron.com>");
 MODULE_LICENSE("GPL");
-MODULE_ALIAS("platform:gpio-kempld");
+MODULE_ALIAS("platform:kempld-gpio");