aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/gpio/driver.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/gpio/driver.h')
-rw-r--r--include/linux/gpio/driver.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h
index 656a27efb2c8..804ec45365b7 100644
--- a/include/linux/gpio/driver.h
+++ b/include/linux/gpio/driver.h
@@ -36,14 +36,15 @@ struct seq_file;
36 * @ngpio: the number of GPIOs handled by this controller; the last GPIO 36 * @ngpio: the number of GPIOs handled by this controller; the last GPIO
37 * handled is (base + ngpio - 1). 37 * handled is (base + ngpio - 1).
38 * @desc: array of ngpio descriptors. Private. 38 * @desc: array of ngpio descriptors. Private.
39 * @can_sleep: flag must be set iff get()/set() methods sleep, as they
40 * must while accessing GPIO expander chips over I2C or SPI
41 * @names: if set, must be an array of strings to use as alternative 39 * @names: if set, must be an array of strings to use as alternative
42 * names for the GPIOs in this chip. Any entry in the array 40 * names for the GPIOs in this chip. Any entry in the array
43 * may be NULL if there is no alias for the GPIO, however the 41 * may be NULL if there is no alias for the GPIO, however the
44 * array must be @ngpio entries long. A name can include a single printk 42 * array must be @ngpio entries long. A name can include a single printk
45 * format specifier for an unsigned int. It is substituted by the actual 43 * format specifier for an unsigned int. It is substituted by the actual
46 * number of the gpio. 44 * number of the gpio.
45 * @can_sleep: flag must be set iff get()/set() methods sleep, as they
46 * must while accessing GPIO expander chips over I2C or SPI
47 * @exported: flags if the gpiochip is exported for use from sysfs. Private.
47 * 48 *
48 * A gpio_chip can help platforms abstract various sources of GPIOs so 49 * A gpio_chip can help platforms abstract various sources of GPIOs so
49 * they can all be accessed through a common programing interface. 50 * they can all be accessed through a common programing interface.
@@ -88,8 +89,8 @@ struct gpio_chip {
88 u16 ngpio; 89 u16 ngpio;
89 struct gpio_desc *desc; 90 struct gpio_desc *desc;
90 const char *const *names; 91 const char *const *names;
91 unsigned can_sleep:1; 92 bool can_sleep;
92 unsigned exported:1; 93 bool exported;
93 94
94#if defined(CONFIG_OF_GPIO) 95#if defined(CONFIG_OF_GPIO)
95 /* 96 /*