diff options
| author | Linus Walleij <[email protected]> | 2016-02-09 12:58:19 +0100 |
|---|---|---|
| committer | Linus Walleij <[email protected]> | 2016-02-09 12:58:19 +0100 |
| commit | 60afe31d1f6245c3156d540b0c7e5381ea8069d1 (patch) | |
| tree | fe2923f401b627a07b7a00b06ae0a39bb42854b0 /include/linux | |
| parent | 42178e2a1e42b480ada954750f248b53d3fb5940 (diff) | |
| parent | fe95046e960b4b76e73dc1486955d93f47276134 (diff) | |
Merge branch 'chardev' into devel
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/gpio/driver.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h index 82fda487453f..f3f1dbd43c9b 100644 --- a/include/linux/gpio/driver.h +++ b/include/linux/gpio/driver.h @@ -1,6 +1,7 @@ #ifndef __LINUX_GPIO_DRIVER_H #define __LINUX_GPIO_DRIVER_H +#include <linux/device.h> #include <linux/types.h> #include <linux/module.h> #include <linux/irq.h> @@ -10,22 +11,22 @@ #include <linux/pinctrl/pinctrl.h> #include <linux/kconfig.h> -struct device; struct gpio_desc; struct of_phandle_args; struct device_node; struct seq_file; +struct gpio_device; #ifdef CONFIG_GPIOLIB /** * struct gpio_chip - abstract a GPIO controller * @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 - * @list: links gpio_chips together for traversal * @request: optional hook for chip-specific activation, such as * enabling module power and clock; may sleep * @free: optional hook for chip-specific deactivation, such as @@ -107,11 +108,11 @@ struct seq_file; */ struct gpio_chip { const char *label; + struct gpio_device *gpiodev; struct device *parent; struct device *cdev; struct module *owner; void *data; - struct list_head list; int (*request)(struct gpio_chip *chip, unsigned offset); |