rtc: sd3078: make symbol 'sd3078_driver' static
Subsystems (3)
PATCH 1/1 rtc: sd3078: make symbol 'sd3078_driver' static
Fixes the following sparse warning:
drivers/rtc/rtc-sd3078.c:218:19: warning:
symbol 'sd3078_driver' was not declared. Should it be static?
Fixes 1d67a232105b ("rtc: sd3078: new driver.")
Signed-off-by Wei Yongjun <[email protected]>
--- drivers/rtc/rtc-sd3078.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/rtc/rtc-sd3078.c +1 -1
@@ -215,7 +215,7 @@ static int sd3078_probe(struct i2c_client *client, };MODULE_DEVICE_TABLE (of, rtc_dt_match); -struct i2c_driver sd3078_driver = { +static struct i2c_driver sd3078_driver = { .driver = { .name ="sd3078" , .owner =THIS_MODULE ,
Quoted 11 lines · Wei Yongjun
Fixes the following sparse warning:
drivers/rtc/rtc-sd3078.c:218:19: warning:
symbol 'sd3078_driver' was not declared. Should it be static?Fixes 1d67a232105b ("rtc: sd3078: new driver.")Signed-off-by Wei Yongjun <[email protected]>--- drivers/rtc/rtc-sd3078.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
Signature · 3 lines
Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com