summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-06-01 16:37:13 +0300
committerGuenter Roeck <linux@roeck-us.net>2018-06-01 18:56:35 +0300
commitfb8eefd3b4e6f79e0930fffff6640744699c6f1d (patch)
treedb352ee0248e136d20881426a1eed5834717b5f4 /drivers
parent853d5e4b9a48fa91a329123bac33b1cf30277a04 (diff)
downloadlinux-fb8eefd3b4e6f79e0930fffff6640744699c6f1d.tar.xz
hwmon: (k10temp) Make function get_raw_temp static
The function get_raw_temp is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: drivers/hwmon/k10temp.c:149:14: warning: symbol 'get_raw_temp' was not declared. Should it be static? Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/hwmon/k10temp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c
index d3fae5a8e508..17c6460ae351 100644
--- a/drivers/hwmon/k10temp.c
+++ b/drivers/hwmon/k10temp.c
@@ -146,7 +146,7 @@ static void read_tempreg_nb_f17(struct pci_dev *pdev, u32 *regval)
F17H_M01H_REPORTED_TEMP_CTRL_OFFSET, regval);
}
-unsigned int get_raw_temp(struct k10temp_data *data)
+static unsigned int get_raw_temp(struct k10temp_data *data)
{
unsigned int temp;
u32 regval;