i2c-cht-wc: make cht_wc_i2c_adap_driver static
authorColin Ian King <colin.king@canonical.com>
Wed, 16 Aug 2017 09:16:59 +0000 (10:16 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 29 Aug 2017 10:09:06 +0000 (12:09 +0200)
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 <colin.king@canonical.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-cht-wc.c

index 21312ee..190bbbc 100644 (file)
@@ -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 = {