summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/pwm-fan.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hwmon/pwm-fan.c b/drivers/hwmon/pwm-fan.c
index 7c83dc4c8dbd..417072863ebe 100644
--- a/drivers/hwmon/pwm-fan.c
+++ b/drivers/hwmon/pwm-fan.c
@@ -173,7 +173,8 @@ static const struct thermal_cooling_device_ops pwm_fan_cooling_ops = {
173 .set_cur_state = pwm_fan_set_cur_state, 173 .set_cur_state = pwm_fan_set_cur_state,
174}; 174};
175 175
176int pwm_fan_of_get_cooling_data(struct device *dev, struct pwm_fan_ctx *ctx) 176static int pwm_fan_of_get_cooling_data(struct device *dev,
177 struct pwm_fan_ctx *ctx)
177{ 178{
178 struct device_node *np = dev->of_node; 179 struct device_node *np = dev->of_node;
179 int num, i, ret; 180 int num, i, ret;