]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: omap: simplify read-modify-write
authorRussell King <rmk+kernel@armlinux.org.uk>
Mon, 10 Jun 2019 17:10:55 +0000 (20:10 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 12 Jun 2019 09:14:23 +0000 (11:14 +0200)
commit21869dd06f9270ba0dc6c9a50f15ec7b715c4a54
treed732cd06231f600859c2f6fb8ca7147ffb048255
parent8af58b9b4b18f392bb068279e86bfc98c476261e
gpio: omap: simplify read-modify-write

We already have a read-modify-write helper, but there's more that can
be done with a read-modify-write helper if it returned the new value.
Modify the existing helper to return the new value, and arrange for
it to take one less argument by having the caller compute the register
address.

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