[PATCH] gpio: zynq: Fix the documentation warning in zynq_gpio_get_bank_pin

Michal Simek michal.simek at amd.com
Fri Jul 18 10:02:41 CEST 2025



On 7/17/25 06:46, Venkatesh Yadav Abbarapu wrote:
> 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 at amd.com>
> ---
>   drivers/gpio/zynq_gpio.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/gpio/zynq_gpio.c b/drivers/gpio/zynq_gpio.c
> index 7db58c70663..ef4f33f84e9 100644
> --- a/drivers/gpio/zynq_gpio.c
> +++ b/drivers/gpio/zynq_gpio.c
> @@ -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.
>    */

Applied.
M


More information about the U-Boot mailing list