nvmem: sunplus-ocotp: Make symbol 'sp_otp_v0' static
Subsystems (3)
PATCH 1/1 nvmem: sunplus-ocotp: Make symbol 'sp_otp_v0' static
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 <[email protected]>
Signed-off-by Wei Yongjun <[email protected]>
--- drivers/nvmem/sunplus-ocotp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/nvmem/sunplus-ocotp.c +1 -1
@@ -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 , };