]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spi: xilinx_spi: Add missing prototype for xilinx_qspi_mem_exec_op
authorAlgapally Santosh Sagar <santoshsagar.algapally@amd.com>
Wed, 14 Jun 2023 09:03:54 +0000 (03:03 -0600)
committerMichal Simek <michal.simek@amd.com>
Fri, 21 Jul 2023 07:00:38 +0000 (09:00 +0200)
Add missing prototype to fix the below sparse warning
warning: no previous prototype for 'xilinx_qspi_mem_exec_op'
[-Wmissing-prototypes]

Signed-off-by: Algapally Santosh Sagar <santoshsagar.algapally@amd.com>
Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@amd.com>
Link: https://lore.kernel.org/r/20230614090359.10809-2-ashok.reddy.soma@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
drivers/spi/xilinx_spi.c

index 33575fe75754006c08fb8f208c39685caa6611e9..b58a3f632a46350aca34618fa2e483188558f6e9 100644 (file)
@@ -363,8 +363,8 @@ static int xilinx_qspi_check_buswidth(struct spi_slave *slave, u8 width)
        return -EOPNOTSUPP;
 }
 
-bool xilinx_qspi_mem_exec_op(struct spi_slave *slave,
-                            const struct spi_mem_op *op)
+static bool xilinx_qspi_mem_exec_op(struct spi_slave *slave,
+                                   const struct spi_mem_op *op)
 {
        if (xilinx_qspi_check_buswidth(slave, op->cmd.buswidth))
                return false;