projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93590a0
)
spi: zynq_qspi: Add missing prototype for update_stripe
author
Venkatesh Yadav Abbarapu
<venkatesh.abbarapu@amd.com>
Wed, 16 Oct 2024 04:44:02 +0000
(10:14 +0530)
committer
Michal Simek
<michal.simek@amd.com>
Fri, 25 Oct 2024 14:19:55 +0000
(16:19 +0200)
Add missing prototype to fix the sparse warning,
warning: no previous prototype for 'update_stripe'
[-Wmissing-prototypes].
Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Link:
https://lore.kernel.org/r/20241016044402.18052-1-venkatesh.abbarapu@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
drivers/spi/zynq_qspi.c
patch
|
blob
|
history
diff --git
a/drivers/spi/zynq_qspi.c
b/drivers/spi/zynq_qspi.c
index f5b3fb5c12536e6d26cd0b7a70c9e6b662362f78..4aad3248d9e844caa3de073509fa0e707817c728 100644
(file)
--- 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 ||