hwmon: (w83627ehf) make sensor_dev_attr_##_name variables static
authorChen Zhou <chenzhou10@huawei.com>
Fri, 13 Dec 2019 01:56:05 +0000 (09:56 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 23 Jan 2020 21:15:09 +0000 (13:15 -0800)
commit8f77203587f5bee21b344f743dbac407871067a3
treecf0860e42d6ecc170913d86e3456fe563105f55e
parent9e347728c4fe0f0661194243384ac9f61d7a5c73
hwmon: (w83627ehf) make sensor_dev_attr_##_name variables static

Fix sparse warning:

drivers/hwmon/w83627ehf.c:1202:1: warning:
symbol 'sensor_dev_attr_pwm1_target' was not declared. Should it be static?

and many more similar messages.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Chen Zhou <chenzhou10@huawei.com>
Link: https://lore.kernel.org/r/20191213015605.172472-1-chenzhou10@huawei.com
[groeck: Dropped all but one log message from description]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/w83627ehf.c