summaryrefslogtreecommitdiffstats
path: root/drivers/spi/atmel-quadspi.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-03-21 16:16:56 +0100
committerMark Brown <broonie@kernel.org>2019-03-25 13:13:10 +0100
commit55e3dacaf538745b7d57dce43b9950687ff878ab (patch)
tree28f1e41b58d981bf3f5f3340a77f256de4a39e37 /drivers/spi/atmel-quadspi.c
parentspi: export tracepoint symbols to modules (diff)
downloadlinux-55e3dacaf538745b7d57dce43b9950687ff878ab.tar.xz
linux-55e3dacaf538745b7d57dce43b9950687ff878ab.zip
spi: atmel-quadspi: Make atmel_qspi_get_name static
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>
Diffstat (limited to 'drivers/spi/atmel-quadspi.c')
-rw-r--r--drivers/spi/atmel-quadspi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/atmel-quadspi.c b/drivers/spi/atmel-quadspi.c
index fffc21cd5f79..e54109759d34 100644
--- 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);
}