summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-en7523.c
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2024-01-15 10:56:47 -0800
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2024-01-15 23:15:35 +0100
commit62b38f30a00ff47142e58d0a6d60dd296e0e8108 (patch)
tree033a9c6eee28a839ed113448ce15a9c1ebded060 /drivers/gpio/gpio-en7523.c
parent832b371097eb928d077c827b8f117bf5b99d35c0 (diff)
downloadlinux-stable-62b38f30a00ff47142e58d0a6d60dd296e0e8108.tar.gz
linux-stable-62b38f30a00ff47142e58d0a6d60dd296e0e8108.tar.bz2
linux-stable-62b38f30a00ff47142e58d0a6d60dd296e0e8108.zip
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: 0868ad385aff ("gpio: Add support for Airoha EN7523 GPIO controller") Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-en7523.c')
-rw-r--r--drivers/gpio/gpio-en7523.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-en7523.c b/drivers/gpio/gpio-en7523.c
index f836a8db4c1d..69834db2c1cf 100644
--- a/drivers/gpio/gpio-en7523.c
+++ b/drivers/gpio/gpio-en7523.c
@@ -12,11 +12,11 @@
#define AIROHA_GPIO_MAX 32
/**
- * airoha_gpio_ctrl - Airoha GPIO driver data
+ * struct airoha_gpio_ctrl - Airoha GPIO driver data
* @gc: Associated gpio_chip instance.
* @data: The data register.
- * @dir0: The direction register for the lower 16 pins.
- * @dir1: The direction register for the higher 16 pins.
+ * @dir: [0] The direction register for the lower 16 pins.
+ * [1]: The direction register for the higher 16 pins.
* @output: The output enable register.
*/
struct airoha_gpio_ctrl {