aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Wolf <[email protected]>2021-07-24 17:48:17 +0200
committerGuenter Roeck <[email protected]>2021-08-17 14:54:25 -0700
commit6f447ce0f7c16ee501d92091446362aa3359d89a (patch)
tree8a20dac45f67d1c8885a0d5117b6f551be12b4fd
parentef9e78c0d1ff423be08f34e6a8c226aa7c23ce74 (diff)
hwmon: (w83627ehf) Make DEVICE_ATTR_RO static
Make DEVICE_ATTR_RO static to fix sparse warning: warning: symbol 'dev_attr_cpu0_vid' was not declared. Should it be static? Signed-off-by: Armin Wolf <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
-rw-r--r--drivers/hwmon/w83627ehf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/w83627ehf.c b/drivers/hwmon/w83627ehf.c
index 3cea66c58c25..705a59663d42 100644
--- a/drivers/hwmon/w83627ehf.c
+++ b/drivers/hwmon/w83627ehf.c
@@ -1081,7 +1081,7 @@ cpu0_vid_show(struct device *dev, struct device_attribute *attr, char *buf)
struct w83627ehf_data *data = dev_get_drvdata(dev);
return sprintf(buf, "%d\n", vid_from_reg(data->vid, data->vrm));
}
-DEVICE_ATTR_RO(cpu0_vid);
+static DEVICE_ATTR_RO(cpu0_vid);
/* Case open detection */