]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2460bc8356916f8ada0cbfa7d7f02059d1fe5c20
treea21d68b83a3629237c790a69a3d9d461972f07ae
parent86b56a41c095b4e7fa3c787baccfad93d186a2da
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