From: Colin Ian King Date: Wed, 16 Aug 2017 09:16:59 +0000 (+0100) Subject: i2c-cht-wc: make cht_wc_i2c_adap_driver static X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5ca21c13c9f4d180e673bcbc36fd0d9128b7f63e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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: Colin Ian King Signed-off-by: Wolfram Sang --- diff --git a/drivers/i2c/busses/i2c-cht-wc.c b/drivers/i2c/busses/i2c-cht-wc.c index 21312eed09e4..190bbbc7bfee 100644 --- a/drivers/i2c/busses/i2c-cht-wc.c +++ b/drivers/i2c/busses/i2c-cht-wc.c @@ -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 = {