]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spi: zynqmp_qspi: Mark zynqmp_qspi_set_tapdelay() as static
authorVenkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Tue, 4 Oct 2022 05:37:30 +0000 (11:07 +0530)
committerMichal Simek <michal.simek@amd.com>
Fri, 7 Oct 2022 09:31:27 +0000 (11:31 +0200)
Fix the following sparse and compile time warning triggered with W=1:

drivers/spi/zynqmp_gqspi.c:286:6:
warning: no previous prototype for 'zynqmp_qspi_set_tapdelay'
[-Wmissing-prototypes]

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

index d3cc8554b8fbb19c9ad15d82b684f730b491646b..49facc46d3c1974d3076884557cf4955cfb1a3b5 100644 (file)
@@ -294,7 +294,7 @@ static void zynqmp_qspi_chipselect(struct zynqmp_qspi_priv *priv, int is_on)
        zynqmp_qspi_fill_gen_fifo(priv, gqspi_fifo_reg);
 }
 
-void zynqmp_qspi_set_tapdelay(struct udevice *bus, u32 baudrateval)
+static void zynqmp_qspi_set_tapdelay(struct udevice *bus, u32 baudrateval)
 {
        struct zynqmp_qspi_plat *plat = dev_get_plat(bus);
        struct zynqmp_qspi_priv *priv = dev_get_priv(bus);