gpio: ep93xx: Pass around struct gpio_chip
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 22 Aug 2018 20:41:04 +0000 (22:41 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 29 Aug 2018 07:08:43 +0000 (09:08 +0200)
commit991ce74eeb561650705766bbbcc1a6e3a49f358e
tree6a4191fbefc365bbea89de2ca3471ebde09ad8ed
parent68b6493185f7e2600af82e211f147dd1dc1af4c6
gpio: ep93xx: Pass around struct gpio_chip

Instead of using a global variable, pass around the
struct gpio_chip * pointer and dereference to the state
container struct ep93xx_gpio as needed, like all other
drivers do.

Acked-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-ep93xx.c