summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVenkatesh Yadav Abbarapu <[email protected]>2024-10-16 10:14:02 +0530
committerMichal Simek <[email protected]>2024-10-25 16:19:55 +0200
commit874ea273926e213473ebd6d5f7bfba58020ec600 (patch)
tree92dad0e8d9466ef967d6c09e0129141853e08bbd
parent93590a08e3d9b2cec2adb215dbb06334d690644f (diff)
spi: zynq_qspi: Add missing prototype for update_stripe
Add missing prototype to fix the sparse warning, warning: no previous prototype for 'update_stripe' [-Wmissing-prototypes]. Signed-off-by: Venkatesh Yadav Abbarapu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Michal Simek <[email protected]>
-rw-r--r--drivers/spi/zynq_qspi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/zynq_qspi.c b/drivers/spi/zynq_qspi.c
index f5b3fb5c125..4aad3248d9e 100644
--- a/drivers/spi/zynq_qspi.c
+++ b/drivers/spi/zynq_qspi.c
@@ -734,7 +734,7 @@ static int zynq_qspi_set_mode(struct udevice *bus, uint mode)
return 0;
}
-bool update_stripe(const struct spi_mem_op *op)
+static bool update_stripe(const struct spi_mem_op *op)
{
if (op->cmd.opcode == SPINOR_OP_BE_4K ||
op->cmd.opcode == SPINOR_OP_CHIP_ERASE ||