gpio/pinctrl: make gpio_chip members typed boolean
[deliverable/linux.git] / include / linux / gpio / driver.h
index 656a27efb2c8cdd755cd78e20a36e5dd028e5310..804ec45365b78b6d6289702338f181f8fa39e336 100644 (file)
@@ -36,14 +36,15 @@ struct seq_file;
  * @ngpio: the number of GPIOs handled by this controller; the last GPIO
  *     handled is (base + ngpio - 1).
  * @desc: array of ngpio descriptors. Private.
- * @can_sleep: flag must be set iff get()/set() methods sleep, as they
- *     must while accessing GPIO expander chips over I2C or SPI
  * @names: if set, must be an array of strings to use as alternative
  *      names for the GPIOs in this chip. Any entry in the array
  *      may be NULL if there is no alias for the GPIO, however the
  *      array must be @ngpio entries long.  A name can include a single printk
  *      format specifier for an unsigned int.  It is substituted by the actual
  *      number of the gpio.
+ * @can_sleep: flag must be set iff get()/set() methods sleep, as they
+ *     must while accessing GPIO expander chips over I2C or SPI
+ * @exported: flags if the gpiochip is exported for use from sysfs. Private.
  *
  * A gpio_chip can help platforms abstract various sources of GPIOs so
  * they can all be accessed through a common programing interface.
@@ -88,8 +89,8 @@ struct gpio_chip {
        u16                     ngpio;
        struct gpio_desc        *desc;
        const char              *const *names;
-       unsigned                can_sleep:1;
-       unsigned                exported:1;
+       bool                    can_sleep;
+       bool                    exported;
 
 #if defined(CONFIG_OF_GPIO)
        /*
This page took 0.025312 seconds and 5 git commands to generate.