projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca1438d
)
spi: atmel-quadspi: Make atmel_qspi_get_name static
author
YueHaibing
<yuehaibing@huawei.com>
Thu, 21 Mar 2019 15:16:56 +0000
(23:16 +0800)
committer
Mark Brown
<broonie@kernel.org>
Mon, 25 Mar 2019 12:13:10 +0000
(12:13 +0000)
Fix sparse warning:
drivers/spi/atmel-quadspi.c:369:12: warning:
symbol 'atmel_qspi_get_name' was not declared. Should it be static?
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/atmel-quadspi.c
patch
|
blob
|
history
diff --git
a/drivers/spi/atmel-quadspi.c
b/drivers/spi/atmel-quadspi.c
index fffc21cd5f793c721b9adcc7bb40605839cc29e1..e54109759d3489245e328b2f55870136e4762b2d 100644
(file)
--- a/
drivers/spi/atmel-quadspi.c
+++ b/
drivers/spi/atmel-quadspi.c
@@
-366,7
+366,7
@@
static int atmel_qspi_exec_op(struct spi_mem *mem, const struct spi_mem_op *op)
return err;
}
-const char *atmel_qspi_get_name(struct spi_mem *spimem)
+
static
const char *atmel_qspi_get_name(struct spi_mem *spimem)
{
return dev_name(spimem->spi->dev.parent);
}