]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: omap: simplify bank->level_mask
authorRussell King <rmk+kernel@armlinux.org.uk>
Mon, 10 Jun 2019 17:10:54 +0000 (20:10 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 12 Jun 2019 09:14:16 +0000 (11:14 +0200)
commit8af58b9b4b18f392bb068279e86bfc98c476261e
tree6b4cf4a5d1ccf24a899a3540de0eb45108a65635
parentf473e1116620b31a16ace1a069b4a67c7733077f
gpio: omap: simplify bank->level_mask

bank->level_mask is merely the bitwise or of the level detection
context which we have already read in this function.  Rather than
repeating additional reads, compute it from the values already
read.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Tested-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-omap.c