Message ID | 1547607681-5873-1-git-send-email-weiyongjun1@huawei.com |
---|---|
State | Accepted |
Headers | show |
Series | [-next] rtc: sd3078: make symbol 'sd3078_driver' static | expand |
On 16/01/2019 03:01:21+0000, Wei Yongjun wrote: > 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 <weiyongjun1@huawei.com> > --- > drivers/rtc/rtc-sd3078.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Applied, thanks.
diff --git a/drivers/rtc/rtc-sd3078.c b/drivers/rtc/rtc-sd3078.c index a70d7311..704844f 100644 --- a/drivers/rtc/rtc-sd3078.c +++ b/drivers/rtc/rtc-sd3078.c @@ -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,
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 <weiyongjun1@huawei.com> --- drivers/rtc/rtc-sd3078.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)