]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
gpio: zynq: Fix the documentation warning in zynq_gpio_get_bank_pin
authorVenkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Thu, 17 Jul 2025 04:46:32 +0000 (10:16 +0530)
committerMichal Simek <michal.simek@amd.com>
Thu, 24 Jul 2025 06:54:16 +0000 (08:54 +0200)
The 'dev' parameter in the zynq_gpio_get_bank_pin function was not
described in its kernel-doc comment block, leading to a Sparse warning.

drivers/gpio/zynq_gpio.c:194: warning: Function parameter or member 'dev'
not described in 'zynq_gpio_get_bank_pin'

Add a description for the 'dev' parameter to satisfy the documentation
requirements and improve code clarity for this function.

Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Link: https://lore.kernel.org/r/20250717044632.1353588-1-venkatesh.abbarapu@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
drivers/gpio/zynq_gpio.c

index 7db58c70663e9db8981c7ae7db7527bc8cb97084..ef4f33f84e9ddb2c9f76067f6c35f244a1360991 100644 (file)
@@ -184,6 +184,7 @@ static const struct zynq_platform_data zynq_gpio_def = {
  *             pin
  * @bank_pin_num: an output parameter used to return pin number within a bank
  *               for the given gpio pin
+ * @dev:       Pointer to our device structure.
  *
  * Returns the bank number and pin offset within the bank.
  */