Skip to content

Commit

Permalink
hwmon: (sparx5) Make symbol 's5_temp_match' static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and Guenter Roeck committed Jul 24, 2020
1 parent fa4dac3 commit 2fdf8f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/sparx5-temp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
{},
};
Expand Down

0 comments on commit 2fdf8f7

Please sign in to comment.