Skip to content

Commit 62b38f3

Browse files
rddunlapBartosz Golaszewski
authored andcommitted
gpio: EN7523: fix kernel-doc warnings
Add "struct" keyword and explain the @dir array differently to prevent kernel-doc warnings: gpio-en7523.c:22: warning: cannot understand function prototype: 'struct airoha_gpio_ctrl ' gpio-en7523.c:27: warning: Function parameter or struct member 'dir' not described in 'airoha_gpio_ctrl' gpio-en7523.c:27: warning: Excess struct member 'dir0' description in 'airoha_gpio_ctrl' gpio-en7523.c:27: warning: Excess struct member 'dir1' description in 'airoha_gpio_ctrl' Fixes: 0868ad3 ("gpio: Add support for Airoha EN7523 GPIO controller") Signed-off-by: Randy Dunlap <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 832b371 commit 62b38f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/gpio/gpio-en7523.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
#define AIROHA_GPIO_MAX 32
1313

1414
/**
15-
* airoha_gpio_ctrl - Airoha GPIO driver data
15+
* struct airoha_gpio_ctrl - Airoha GPIO driver data
1616
* @gc: Associated gpio_chip instance.
1717
* @data: The data register.
18-
* @dir0: The direction register for the lower 16 pins.
19-
* @dir1: The direction register for the higher 16 pins.
18+
* @dir: [0] The direction register for the lower 16 pins.
19+
* [1]: The direction register for the higher 16 pins.
2020
* @output: The output enable register.
2121
*/
2222
struct airoha_gpio_ctrl {

0 commit comments

Comments
 (0)