提交 f9244ae5 编写于 作者: A Andy Shevchenko 提交者: Linus Walleij

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: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: NAlexandre Courbot <acourbot@nvidia.com>
Reviewed-by: NMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 1a2a99c6
......@@ -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;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册