diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2020-07-21 15:49:19 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2020-07-24 16:44:57 +0200 |
commit | 2fdf8f7f086712bbe296d1d4d4049ca88e7a662d (patch) | |
tree | 2c8ef319ebc27383d96fab96e3684e2392d479f4 /drivers/hwmon | |
parent | hwmon: (corsair-cpro) add reading pwm values (diff) | |
download | linux-2fdf8f7f086712bbe296d1d4d4049ca88e7a662d.tar.xz linux-2fdf8f7f086712bbe296d1d4d4049ca88e7a662d.zip |
hwmon: (sparx5) Make symbol 's5_temp_match' static
The sparse tool complains as follows:
drivers/hwmon/sparx5-temp.c:150:27: warning:
symbol 's5_temp_match' was not declared. Should it be static?
This variable is not used outside of sparx5-temp.c, this commit
marks it static.
Fixes: c2cb4b5777e1 ("hwmon: sparx5: Add Sparx5 SoC temperature driver")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20200721134919.34033-1-weiyongjun1@huawei.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/sparx5-temp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/sparx5-temp.c b/drivers/hwmon/sparx5-temp.c index 7d7a060259a8..1a2b1026b026 100644 --- a/drivers/hwmon/sparx5-temp.c +++ b/drivers/hwmon/sparx5-temp.c @@ -147,7 +147,7 @@ static int s5_temp_probe(struct platform_device *pdev) return PTR_ERR_OR_ZERO(hwmon_dev); } -const struct of_device_id s5_temp_match[] = { +static const struct of_device_id s5_temp_match[] = { { .compatible = "microchip,sparx5-temp" }, {}, }; |