summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlgapally Santosh Sagar <[email protected]>2023-06-14 03:03:56 -0600
committerMichal Simek <[email protected]>2023-07-21 09:00:38 +0200
commit0ebb68fb55f135b036fe20a74f2cfebd98ac0b76 (patch)
tree718df3af92e703b38305d827d0ff4939e850dbbc
parentfdae78b5f5a992f8dbeab7702badaf7e90446d90 (diff)
spi: zynq_qspi: Add missing prototype for zynq_qspi_mem_exec_op
Add missing prototype to fix the sparse warning, warning: no previous prototype for 'zynq_qspi_mem_exec_op' [-Wmissing-prototypes]. Signed-off-by: Algapally Santosh Sagar <[email protected]> Signed-off-by: Ashok Reddy Soma <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Michal Simek <[email protected]>
-rw-r--r--drivers/spi/zynq_qspi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/zynq_qspi.c b/drivers/spi/zynq_qspi.c
index d1d40489665..cb52c0f3072 100644
--- a/drivers/spi/zynq_qspi.c
+++ b/drivers/spi/zynq_qspi.c
@@ -747,8 +747,8 @@ static int zynq_qspi_check_buswidth(struct spi_slave *slave, u8 width)
return -EOPNOTSUPP;
}
-bool zynq_qspi_mem_exec_op(struct spi_slave *slave,
- const struct spi_mem_op *op)
+static bool zynq_qspi_mem_exec_op(struct spi_slave *slave,
+ const struct spi_mem_op *op)
{
if (zynq_qspi_check_buswidth(slave, op->cmd.buswidth))
return false;