public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH] spi: cadence_qspi: Add missing prototype for cadence_qspi_flash_reset
@ 2025-01-22 13:53 Venkatesh Yadav Abbarapu
  2025-01-22 15:58 ` Michal Simek
  0 siblings, 1 reply; 2+ messages in thread
From: Venkatesh Yadav Abbarapu @ 2025-01-22 13:53 UTC (permalink / raw)
  To: u-boot; +Cc: michal.simek, jagan, git

Add missing prototype to fix the sparse warning,
warning: no previous prototype for 'cadence_qspi_flash_reset'
[-Wmissing-prototypes].

Fixes: 6d234a79e9 ("cadence_qspi: Refactor the flash reset functionality")
Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
---
 drivers/spi/cadence_qspi.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/cadence_qspi.h b/drivers/spi/cadence_qspi.h
index 693474a2871..1f9125cd239 100644
--- a/drivers/spi/cadence_qspi.h
+++ b/drivers/spi/cadence_qspi.h
@@ -307,7 +307,7 @@ int cadence_qspi_apb_dma_read(struct cadence_spi_priv *priv,
 			      const struct spi_mem_op *op);
 int cadence_qspi_apb_wait_for_dma_cmplt(struct cadence_spi_priv *priv);
 int cadence_qspi_apb_exec_flash_cmd(void *reg_base, unsigned int reg);
-int cadence_qspi_versal_flash_reset(struct udevice *dev);
+int cadence_qspi_flash_reset(struct udevice *dev);
 ofnode cadence_qspi_get_subnode(struct udevice *dev);
 void cadence_qspi_apb_enable_linear_mode(bool enable);
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] spi: cadence_qspi: Add missing prototype for cadence_qspi_flash_reset
  2025-01-22 13:53 [PATCH] spi: cadence_qspi: Add missing prototype for cadence_qspi_flash_reset Venkatesh Yadav Abbarapu
@ 2025-01-22 15:58 ` Michal Simek
  0 siblings, 0 replies; 2+ messages in thread
From: Michal Simek @ 2025-01-22 15:58 UTC (permalink / raw)
  To: Venkatesh Yadav Abbarapu, u-boot; +Cc: jagan, git



On 1/22/25 14:53, Venkatesh Yadav Abbarapu wrote:
> Add missing prototype to fix the sparse warning,
> warning: no previous prototype for 'cadence_qspi_flash_reset'
> [-Wmissing-prototypes].
> 
> Fixes: 6d234a79e9 ("cadence_qspi: Refactor the flash reset functionality")
> Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
> ---
>   drivers/spi/cadence_qspi.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/spi/cadence_qspi.h b/drivers/spi/cadence_qspi.h
> index 693474a2871..1f9125cd239 100644
> --- a/drivers/spi/cadence_qspi.h
> +++ b/drivers/spi/cadence_qspi.h
> @@ -307,7 +307,7 @@ int cadence_qspi_apb_dma_read(struct cadence_spi_priv *priv,
>   			      const struct spi_mem_op *op);
>   int cadence_qspi_apb_wait_for_dma_cmplt(struct cadence_spi_priv *priv);
>   int cadence_qspi_apb_exec_flash_cmd(void *reg_base, unsigned int reg);
> -int cadence_qspi_versal_flash_reset(struct udevice *dev);
> +int cadence_qspi_flash_reset(struct udevice *dev);
>   ofnode cadence_qspi_get_subnode(struct udevice *dev);
>   void cadence_qspi_apb_enable_linear_mode(bool enable);
>   

Applied.
M

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-01-22 15:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-22 13:53 [PATCH] spi: cadence_qspi: Add missing prototype for cadence_qspi_flash_reset Venkatesh Yadav Abbarapu
2025-01-22 15:58 ` Michal Simek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox