diff options
author | Jason Yan <yanaijie@huawei.com> | 2020-04-09 16:50:09 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-04-14 18:36:33 +0100 |
commit | afedb4b7282b4c532d8aea105943e71c0efb3a6b (patch) | |
tree | 5c3445ddeac49b256fc7379edf244898df898113 /drivers/spi/spi-mtk-nor.c | |
parent | bb4bf8d2f4e0fdf64e43bb3a3186e04891b8a8e1 (diff) | |
download | linux-afedb4b7282b4c532d8aea105943e71c0efb3a6b.tar.gz |
spi: spi-mtk-nor: make mtk_nor_exec_op() statuc
Fix the following sparse warning:
drivers/spi/spi-mtk-nor.c:394:5: warning: symbol 'mtk_nor_exec_op' was
not declared. Should it be static?
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Link: https://lore.kernel.org/r/20200409085009.44971-1-yanaijie@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-mtk-nor.c')
-rw-r--r-- | drivers/spi/spi-mtk-nor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-mtk-nor.c b/drivers/spi/spi-mtk-nor.c index c15a9910549f..7bc302b50396 100644 --- a/drivers/spi/spi-mtk-nor.c +++ b/drivers/spi/spi-mtk-nor.c @@ -391,7 +391,7 @@ static int mtk_nor_pp_unbuffered(struct mtk_nor *sp, return mtk_nor_cmd_exec(sp, MTK_NOR_CMD_WRITE, 6 * BITS_PER_BYTE); } -int mtk_nor_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) +static int mtk_nor_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) { struct mtk_nor *sp = spi_controller_get_devdata(mem->spi->master); int ret; |