linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] spi: atmel-quadspi: Make atmel_qspi_get_name static
@ 2019-03-21 15:16 Yue Haibing
  2019-03-25 12:22 ` Applied "spi: atmel-quadspi: Make atmel_qspi_get_name static" to the spi tree Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Yue Haibing @ 2019-03-21 15:16 UTC (permalink / raw)
  To: broonie, nicolas.ferre, alexandre.belloni, ludovic.desroches
  Cc: linux-kernel, linux-arm-kernel, linux-spi, YueHaibing

From: YueHaibing <yuehaibing@huawei.com>

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>
---
 drivers/spi/atmel-quadspi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/atmel-quadspi.c b/drivers/spi/atmel-quadspi.c
index fffc21c..e541097 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);
 }
-- 
2.7.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-03-25 12:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-21 15:16 [PATCH -next] spi: atmel-quadspi: Make atmel_qspi_get_name static Yue Haibing
2019-03-25 12:22 ` Applied "spi: atmel-quadspi: Make atmel_qspi_get_name static" to the spi tree Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).