mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-30 07:34:12 +08:00
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>
This commit is contained in:
parent
bb4bf8d2f4
commit
afedb4b728
@ -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);
|
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);
|
struct mtk_nor *sp = spi_controller_get_devdata(mem->spi->master);
|
||||||
int ret;
|
int ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user