]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: twl6040: Use bitops
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 3 Sep 2018 07:59:57 +0000 (09:59 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 10 Sep 2018 06:49:14 +0000 (08:49 +0200)
commitf5b8e45937273ddc16f2ce4d88cd13b96534e3c3
tree76a89d32b50333e22d72815f018cd188e8bf252e
parent9c08f91fb322116657fae31f7a53e1ade903282f
gpio: twl6040: Use bitops

It's nice to use BIT() macros rather than open coding the same.
It's good practice as sometimes people use BIT(31) and forget
that the constant must be cast unsigned long.

Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-twl6040.c