mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
9efd9e6956
commit
afbc4f312b
4 changed files with 21 additions and 19 deletions
|
@ -24,7 +24,6 @@ struct gpio_device;
|
|||
* @label: for diagnostics
|
||||
* @gpiodev: the internal state holder, opaque struct
|
||||
* @parent: optional parent device providing the GPIOs
|
||||
* @cdev: class device used by sysfs interface (may be NULL)
|
||||
* @owner: helps prevent removal of modules exporting active GPIOs
|
||||
* @data: per-instance data assigned by the driver
|
||||
* @request: optional hook for chip-specific activation, such as
|
||||
|
@ -110,7 +109,6 @@ struct gpio_chip {
|
|||
const char *label;
|
||||
struct gpio_device *gpiodev;
|
||||
struct device *parent;
|
||||
struct device *cdev;
|
||||
struct module *owner;
|
||||
void *data;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue