summaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-08-16 10:16:59 +0100
committerWolfram Sang <wsa@the-dreams.de>2017-08-29 12:09:06 +0200
commit5ca21c13c9f4d180e673bcbc36fd0d9128b7f63e (patch)
tree8ab58d10bd74ccaa25752f5faf89d57229553be8 /drivers/i2c
parentd596f2b8b4cb0451087992796974aa9f076a7fc7 (diff)
downloadblackbird-op-linux-5ca21c13c9f4d180e673bcbc36fd0d9128b7f63e.tar.gz
blackbird-op-linux-5ca21c13c9f4d180e673bcbc36fd0d9128b7f63e.zip
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 <colin.king@canonical.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-cht-wc.c2
1 files changed, 1 insertions, 1 deletions
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 = {
OpenPOWER on IntegriCloud