summaryrefslogtreecommitdiffstats
path: root/drivers/thermal
diff options
context:
space:
mode:
authorRashika <rashika.kheria@gmail.com>2013-12-18 23:16:02 +0530
committerZhang Rui <rui.zhang@intel.com>2014-01-02 10:34:37 +0800
commitf67fe3c55f248678a099395c764db0a969faa55e (patch)
tree057fc2fb15d179c0e9a7a70ffc91741234ba41d0 /drivers/thermal
parentb688b5bf845eb1fc3be06073a7be3ba6b7933f52 (diff)
downloadop-kernel-dev-f67fe3c55f248678a099395c764db0a969faa55e.zip
op-kernel-dev-f67fe3c55f248678a099395c764db0a969faa55e.tar.gz
drivers: thermal: Mark function as static in x86_pkg_temp_thermal.c
Mark function sys_set_trip_temp() as static in x86_pkg_temp_thermal.c because it is not used outside this file. This eliminates the following warning in x86_pkg_temp_thermal.c: drivers/thermal/x86_pkg_temp_thermal.c:218:5: warning: no previous prototype for ‘sys_set_trip_temp’ [-Wmissing-prototypes] Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/thermal')
-rw-r--r--drivers/thermal/x86_pkg_temp_thermal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/x86_pkg_temp_thermal.c b/drivers/thermal/x86_pkg_temp_thermal.c
index 7722cb9..972e1c7 100644
--- a/drivers/thermal/x86_pkg_temp_thermal.c
+++ b/drivers/thermal/x86_pkg_temp_thermal.c
@@ -215,7 +215,7 @@ static int sys_get_trip_temp(struct thermal_zone_device *tzd,
return 0;
}
-int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip,
+static int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip,
unsigned long temp)
{
u32 l, h;
OpenPOWER on IntegriCloud