diff options
| author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2013-12-05 04:26:25 -0500 |
|---|---|---|
| committer | Linus Walleij <linus.walleij@linaro.org> | 2013-12-09 08:18:33 -0500 |
| commit | f9244ae5dce18b73ac42f5979116050da3a5c4d5 (patch) | |
| tree | dd1627482323c6a450f067e00797de64f12ac2c2 /include/linux/gpio | |
| parent | 1a2a99c69eaea30da25dede555a3d70d7a412ae2 (diff) | |
gpiolib: convert gpiod_lookup description to kernel-doc
The patch moves description of the fields to the top of struct definition and
converts them to the kernel-doc format.
There is no functional change.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/gpio')
| -rw-r--r-- | include/linux/gpio/driver.h | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h index 44c66b29a2d9..a3e181e09636 100644 --- a/include/linux/gpio/driver.h +++ b/include/linux/gpio/driver.h | |||
| @@ -137,29 +137,21 @@ enum gpio_lookup_flags { | |||
| 137 | }; | 137 | }; |
| 138 | 138 | ||
| 139 | /** | 139 | /** |
| 140 | * Lookup table for associating GPIOs to specific devices and functions using | 140 | * struct gpiod_lookup - lookup table |
| 141 | * platform data. | 141 | * @chip_label: name of the chip the GPIO belongs to |
| 142 | * @chip_hwnum: hardware number (i.e. relative to the chip) of the GPIO | ||
| 143 | * @con_id: name of the GPIO from the device's point of view | ||
| 144 | * @idx: index of the GPIO in case several GPIOs share the same name | ||
| 145 | * @flags: mask of GPIO_* values | ||
| 146 | * | ||
| 147 | * gpiod_lookup is a lookup table for associating GPIOs to specific devices and | ||
| 148 | * functions using platform data. | ||
| 142 | */ | 149 | */ |
| 143 | struct gpiod_lookup { | 150 | struct gpiod_lookup { |
| 144 | /* | ||
| 145 | * name of the chip the GPIO belongs to | ||
| 146 | */ | ||
| 147 | const char *chip_label; | 151 | const char *chip_label; |
| 148 | /* | ||
| 149 | * hardware number (i.e. relative to the chip) of the GPIO | ||
| 150 | */ | ||
| 151 | u16 chip_hwnum; | 152 | u16 chip_hwnum; |
| 152 | /* | ||
| 153 | * name of the GPIO from the device's point of view | ||
| 154 | */ | ||
| 155 | const char *con_id; | 153 | const char *con_id; |
| 156 | /* | ||
| 157 | * index of the GPIO in case several GPIOs share the same name | ||
| 158 | */ | ||
| 159 | unsigned int idx; | 154 | unsigned int idx; |
| 160 | /* | ||
| 161 | * mask of GPIO_* values | ||
| 162 | */ | ||
| 163 | enum gpio_lookup_flags flags; | 155 | enum gpio_lookup_flags flags; |
| 164 | }; | 156 | }; |
| 165 | 157 | ||
