aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/gpio
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2016-02-09 07:21:06 -0500
committerLinus Walleij <linus.walleij@linaro.org>2016-02-11 12:16:54 -0500
commitafbc4f312b5e6e87fcd383eb6764e09f1324c78e (patch)
tree5428e0fe100c576dd158bba68df183010cee2009 /include/linux/gpio
parent9efd9e6956adf479eb85beb74bb975f702dc01a9 (diff)
gpio: move sysfs mock device to the gpio_device
Since gpio_device is the struct that survives if the backing gpio_chip is removed, move the sysfs mock device to this state container so it becomes part of the dangling state of the GPIO device on removal. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/gpio')
-rw-r--r--include/linux/gpio/driver.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h
index f3f1dbd43c9b..4db64ab534ef 100644
--- a/include/linux/gpio/driver.h
+++ b/include/linux/gpio/driver.h
@@ -24,7 +24,6 @@ struct gpio_device;
24 * @label: for diagnostics 24 * @label: for diagnostics
25 * @gpiodev: the internal state holder, opaque struct 25 * @gpiodev: the internal state holder, opaque struct
26 * @parent: optional parent device providing the GPIOs 26 * @parent: optional parent device providing the GPIOs
27 * @cdev: class device used by sysfs interface (may be NULL)
28 * @owner: helps prevent removal of modules exporting active GPIOs 27 * @owner: helps prevent removal of modules exporting active GPIOs
29 * @data: per-instance data assigned by the driver 28 * @data: per-instance data assigned by the driver
30 * @request: optional hook for chip-specific activation, such as 29 * @request: optional hook for chip-specific activation, such as
@@ -110,7 +109,6 @@ struct gpio_chip {
110 const char *label; 109 const char *label;
111 struct gpio_device *gpiodev; 110 struct gpio_device *gpiodev;
112 struct device *parent; 111 struct device *parent;
113 struct device *cdev;
114 struct module *owner; 112 struct module *owner;
115 void *data; 113 void *data;
116 114