]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: dwapb: fix bgpio usage
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 20 Oct 2017 10:26:51 +0000 (12:26 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 25 Oct 2017 09:25:10 +0000 (11:25 +0200)
commitb1d38661a06557f1ada08665036495b106414527
tree5362ac52c908724f7b6a18f9ce329cad5c3edefe
parent4c87d5c227b825e866171397eac5f6a387c9132e
gpio: dwapb: fix bgpio usage

The DW APB GPIO driver uses the generic GPIO library gpio-mmio,
and initialize the flags as "false", which should be 0.

When no flags are given, the native endianness is used to access
the MMIO registers, and the pin2mask() call can simply be
converted to a BIT() call, as per the default pin2mask()
implementation in gpio-mmio.c.

Acked-by: Alan Tull <atull@kernel.org>
Acked-by: Hoan Tran <hotran@apm.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-dwapb.c