Skip to content

Commit 2fdf8f7

Browse files
Wei Yongjungroeck
authored andcommitted
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: c2cb4b5 ("hwmon: sparx5: Add Sparx5 SoC temperature driver") Reported-by: Hulk Robot <[email protected]> Signed-off-by: Wei Yongjun <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
1 parent fa4dac3 commit 2fdf8f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hwmon/sparx5-temp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ static int s5_temp_probe(struct platform_device *pdev)
147147
return PTR_ERR_OR_ZERO(hwmon_dev);
148148
}
149149

150-
const struct of_device_id s5_temp_match[] = {
150+
static const struct of_device_id s5_temp_match[] = {
151151
{ .compatible = "microchip,sparx5-temp" },
152152
{},
153153
};

0 commit comments

Comments
 (0)