]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: tc3589x: use BIT() macro
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 5 Apr 2016 13:09:09 +0000 (15:09 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 5 Apr 2016 14:58:38 +0000 (16:58 +0200)
commit714e9c27943850bfb4e01feddc7393848c39bc47
tree7a2df2fac4ce057a3fd6c6ca2cf48b5f402496ac
parentd2e544b3ca85f2ca3da548376a667ed2491d7622
gpio: tc3589x: use BIT() macro

This switch to use BIT(n) instead of (1 << n) which is less
to the point. Most GPIO drivers do this to avoid mistakes.
Also switch from using <linux/gpio.h> to the apropriate
<linux/gpio/driver.h> include.

Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-tc3589x.c