diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-08-16 11:16:59 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2017-08-29 12:09:06 +0200 |
commit | 5ca21c13c9f4d180e673bcbc36fd0d9128b7f63e (patch) | |
tree | 8ab58d10bd74ccaa25752f5faf89d57229553be8 /drivers/i2c | |
parent | MAINTAINERS: Add entry for drivers/i2c/busses/i2c-cht-wc.c (diff) | |
download | linux-5ca21c13c9f4d180e673bcbc36fd0d9128b7f63e.tar.xz 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.c | 2 |
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 = { |