aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/thermal/step_wise.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2012-09-27 06:58:12 -0400
committerZhang Rui <rui.zhang@intel.com>2012-11-05 01:00:10 -0500
commitb88a497701f84a0edc6631a79d21087e049bbcb1 (patch)
tree054c246045b50199df7bab022d3414ef906ea6d4 /drivers/thermal/step_wise.c
parent791700cdfc2453eb927ff7875d183d9808d89bfb (diff)
thermal: step_wise: Add missing static storage class specifiers
Fixes the following sparse warnings: drivers/thermal/step_wise.c:153:5: warning: symbol 'step_wise_throttle' was not declared. Should it be static? drivers/thermal/step_wise.c:172:25: warning: symbol 'thermal_gov_step_wise' was not declared. Should it be static? Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Acked-by: Durgadoss R <durgadoss.r@intel.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/thermal/step_wise.c')
-rw-r--r--drivers/thermal/step_wise.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/thermal/step_wise.c b/drivers/thermal/step_wise.c
index 3f9cfcf66ccd..1242cffed8b0 100644
--- a/drivers/thermal/step_wise.c
+++ b/drivers/thermal/step_wise.c
@@ -150,7 +150,7 @@ static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip)
150 * step. If the zone is 'cooling down' it brings back the performance of 150 * step. If the zone is 'cooling down' it brings back the performance of
151 * the devices by one step. 151 * the devices by one step.
152 */ 152 */
153int step_wise_throttle(struct thermal_zone_device *tz, int trip) 153static int step_wise_throttle(struct thermal_zone_device *tz, int trip)
154{ 154{
155 struct thermal_instance *instance; 155 struct thermal_instance *instance;
156 156
@@ -169,7 +169,7 @@ int step_wise_throttle(struct thermal_zone_device *tz, int trip)
169 return 0; 169 return 0;
170} 170}
171 171
172struct thermal_governor thermal_gov_step_wise = { 172static struct thermal_governor thermal_gov_step_wise = {
173 .name = DEFAULT_THERMAL_GOVERNOR, 173 .name = DEFAULT_THERMAL_GOVERNOR,
174 .throttle = step_wise_throttle, 174 .throttle = step_wise_throttle,
175 .owner = THIS_MODULE, 175 .owner = THIS_MODULE,