[PATCH -next] nvmem: sunplus-ocotp: Make symbol 'sp_otp_v0' static

Wei Yongjun posted 1 patch 4 years, 3 months ago
drivers/nvmem/sunplus-ocotp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH -next] nvmem: sunplus-ocotp: Make symbol 'sp_otp_v0' static
Posted by Wei Yongjun 4 years, 3 months ago
The sparse tool complains as follows:

drivers/nvmem/sunplus-ocotp.c:74:29: warning:
 symbol 'sp_otp_v0' was not declared. Should it be static?

This symbol is not used outside of sunplus-ocotp.c, so marks it static.

Fixes: 5293c629db95 ("nvmem: Add driver for OCOTP in Sunplus SP7021")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
 drivers/nvmem/sunplus-ocotp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/nvmem/sunplus-ocotp.c b/drivers/nvmem/sunplus-ocotp.c
index 2dc59c22eb55..e0b11e13f5f8 100644
--- a/drivers/nvmem/sunplus-ocotp.c
+++ b/drivers/nvmem/sunplus-ocotp.c
@@ -71,7 +71,7 @@ struct sp_ocotp_data {
 	int size;
 };
 
-const struct sp_ocotp_data  sp_otp_v0 = {
+static const struct sp_ocotp_data  sp_otp_v0 = {
 	.size = QAC628_OTP_SIZE,
 };