pinctrl: apple: use modulo rather than bitwise and
authorJoey Gouly <joey.gouly@arm.com>
Sun, 21 Nov 2021 16:56:41 +0000 (16:56 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 26 Nov 2021 23:55:14 +0000 (00:55 +0100)
commit077db34c2b007a086baa3ee87bc72794a25d0329
treeadf637c83d6daf017aa19cfa6d457e722e036fef
parent44bddfad97e7f6290c8d578e79aa608cfb97e65f
pinctrl: apple: use modulo rather than bitwise and

This expresses the intention clearer.

Signed-off-by: Joey Gouly <joey.gouly@arm.com>
Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20211121165642.27883-11-joey.gouly@arm.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-apple-gpio.c