Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5ca21c13 authored by Colin Ian King's avatar Colin Ian King Committed by Wolfram Sang
Browse files

i2c-cht-wc: make cht_wc_i2c_adap_driver static



The structure cht_wc_i2c_adap_driver is local to the source
and does not need to be in global scope, so make it static.

Cleans up sparse warning:
symbol 'cht_wc_i2c_adap_driver' was not declared. Should it be static?

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent d596f2b8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -348,7 +348,7 @@ static struct platform_device_id cht_wc_i2c_adap_id_table[] = {
};
MODULE_DEVICE_TABLE(platform, cht_wc_i2c_adap_id_table);

struct platform_driver cht_wc_i2c_adap_driver = {
static struct platform_driver cht_wc_i2c_adap_driver = {
	.probe = cht_wc_i2c_adap_i2c_probe,
	.remove = cht_wc_i2c_adap_i2c_remove,
	.driver = {