gpio: move the subdriver data pointer into gpio_device
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 11 Feb 2016 10:37:48 +0000 (11:37 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 15 Feb 2016 23:20:02 +0000 (00:20 +0100)
commit43c54ecade400cf6ca8203f960b525fbe5b73a13
treea21d68b83a3629237c790a69a3d9d461972f07ae
parent20ec3e39fc12cf3a331ee73eb01d52bddcdd2fa4
gpio: move the subdriver data pointer into gpio_device

We move to manage this pointer under gpiolib control rather than
leave it in the subdevice's gpio_chip. We can not NULL it after
gpiochip_remove so at to keep things tight.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c
drivers/gpio/gpiolib.h
include/linux/gpio/driver.h