]> git.karo-electronics.de Git - linux-beck.git/commitdiff
pinctrl: mediatek: Consistently use the BIT() macro
authorJavier Martinez Canillas <javier@osg.samsung.com>
Fri, 28 Aug 2015 23:25:01 +0000 (01:25 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 25 Sep 2015 16:40:57 +0000 (09:40 -0700)
The mediatek pinctrl driver uses the BIT() macro instead of open
coding 1 << n in all but one place. Replace this occurrence with
the BIT() macro for consistency.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-mtk-common.c

index 1b22f96ba839af38d920d40f0f63309d2141a2b5..c40f533c9d84968c38d4d0c2146bfde16b9c2cbc 100644 (file)
@@ -899,7 +899,7 @@ static int mtk_eint_flip_edge(struct mtk_pinctrl *pctl, int hwirq)
        int start_level, curr_level;
        unsigned int reg_offset;
        const struct mtk_eint_offsets *eint_offsets = &(pctl->devdata->eint_offsets);
-       u32 mask = 1 << (hwirq & 0x1f);
+       u32 mask = BIT(hwirq & 0x1f);
        u32 port = (hwirq >> 5) & eint_offsets->port_mask;
        void __iomem *reg = pctl->eint_reg_base + (port << 2);
        const struct mtk_desc_pin *pin;