summaryrefslogtreecommitdiffstats
path: root/include/linux/gpio
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2013-12-05 11:26:25 +0200
committerLinus Walleij <linus.walleij@linaro.org>2013-12-09 14:18:33 +0100
commitf9244ae5dce18b73ac42f5979116050da3a5c4d5 (patch)
treedd1627482323c6a450f067e00797de64f12ac2c2 /include/linux/gpio
parent1a2a99c69eaea30da25dede555a3d70d7a412ae2 (diff)
downloadblackbird-op-linux-f9244ae5dce18b73ac42f5979116050da3a5c4d5.tar.gz
blackbird-op-linux-f9244ae5dce18b73ac42f5979116050da3a5c4d5.zip
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.h26
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 {
};
/**
- * Lookup table for associating GPIOs to specific devices and functions using
- * platform data.
+ * struct gpiod_lookup - lookup table
+ * @chip_label: name of the chip the GPIO belongs to
+ * @chip_hwnum: hardware number (i.e. relative to the chip) of the GPIO
+ * @con_id: name of the GPIO from the device's point of view
+ * @idx: index of the GPIO in case several GPIOs share the same name
+ * @flags: mask of GPIO_* values
+ *
+ * gpiod_lookup is a lookup table for associating GPIOs to specific devices and
+ * functions using platform data.
*/
struct gpiod_lookup {
- /*
- * name of the chip the GPIO belongs to
- */
const char *chip_label;
- /*
- * hardware number (i.e. relative to the chip) of the GPIO
- */
u16 chip_hwnum;
- /*
- * name of the GPIO from the device's point of view
- */
const char *con_id;
- /*
- * index of the GPIO in case several GPIOs share the same name
- */
unsigned int idx;
- /*
- * mask of GPIO_* values
- */
enum gpio_lookup_flags flags;
};
OpenPOWER on IntegriCloud