]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: stmpe: use BIT() macro
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 27 Sep 2016 23:11:10 +0000 (16:11 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 30 Sep 2016 16:03:02 +0000 (09:03 -0700)
commitdc408b571feeca180cce10676b1d6fcf560093e0
tree98d008d70d16cb217a06c075fd498c6aeae90e83
parent22ee67520e461f05a658ebadd32e990511c90f6e
gpio: stmpe: use BIT() macro

Avoid custom (1 << bits) shifting by consequently using the
BIT() macro from <linux/bitops.h>.

Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-stmpe.c