]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: loongson1: fix bgpio usage
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 20 Oct 2017 12:42:01 +0000 (14:42 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 25 Oct 2017 09:25:38 +0000 (11:25 +0200)
commit4826de4ed4178e2e12d50c9ff6e2deada83fe842
treeb2c61c8ac5438680e96db2c98fba1e10d4d641d6
parentb1d38661a06557f1ada08665036495b106414527
gpio: loongson1: fix bgpio usage

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.

Cc: Kelvin Cheung <keguang.zhang@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-loongson1.c