[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220126091159.27513-1-guochun.mao@mediatek.com>
Date: Wed, 26 Jan 2022 17:11:59 +0800
From: <guochun.mao@...iatek.com>
To: Mark Brown <broonie@...nel.org>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>
CC: Matthias Brugger <matthias.bgg@...il.com>,
Bayi Cheng <bayi.cheng@...iatek.com>,
Chuanhong Guo <gch981213@...il.com>,
Bin Zhang <bin.zhang@...iatek.com>,
<linux-mediatek@...ts.infradead.org>,
<srv_heupstream@...iatek.com>,
<project_global_chrome_upstream_group@...iatek.com>,
<linux-kernel@...r.kernel.org>, <linux-spi@...r.kernel.org>,
Guochun Mao <guochun.mao@...iatek.com>,
kernel test robot <lkp@...el.com>
Subject: [PATCH] spi: spi-mtk-nor: make some internal variables static
From: Guochun Mao <guochun.mao@...iatek.com>
Variables mtk_nor_caps_mt8173, mtk_nor_caps_mt8186 and
mtk_nor_caps_mt8192 are not declared.
Make them static.
Fixes: 5b177234e9fd ("spi: spi-mtk-nor: improve device table for adding more capabilities")
Signed-off-by: Guochun Mao <guochun.mao@...iatek.com>
Reported-by: kernel test robot <lkp@...el.com>
---
drivers/spi/spi-mtk-nor.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/spi/spi-mtk-nor.c b/drivers/spi/spi-mtk-nor.c
index 455b4dcb26e9..94fb09696677 100644
--- a/drivers/spi/spi-mtk-nor.c
+++ b/drivers/spi/spi-mtk-nor.c
@@ -770,17 +770,17 @@ static const struct spi_controller_mem_ops mtk_nor_mem_ops = {
.exec_op = mtk_nor_exec_op
};
-const struct mtk_nor_caps mtk_nor_caps_mt8173 = {
+static const struct mtk_nor_caps mtk_nor_caps_mt8173 = {
.dma_bits = 32,
.extra_dummy_bit = 0,
};
-const struct mtk_nor_caps mtk_nor_caps_mt8186 = {
+static const struct mtk_nor_caps mtk_nor_caps_mt8186 = {
.dma_bits = 32,
.extra_dummy_bit = 1,
};
-const struct mtk_nor_caps mtk_nor_caps_mt8192 = {
+static const struct mtk_nor_caps mtk_nor_caps_mt8192 = {
.dma_bits = 36,
.extra_dummy_bit = 0,
};
--
2.25.1
Powered by blists - more mailing lists