diff options
| author | Guenter Roeck <[email protected]> | 2015-03-04 17:51:05 +0000 |
|---|---|---|
| committer | Guenter Roeck <[email protected]> | 2015-03-09 16:59:36 +0000 |
| commit | de52b049d6d5af635d628d17fcb466d53a9617af (patch) | |
| tree | 5c5ced8cb36b5a5651907adafe76efdc55235b82 /drivers/hwmon/pwm-fan.c | |
| parent | (gpio-fan): Add thermal control hooks (diff) | |
| download | kernel-de52b049d6d5af635d628d17fcb466d53a9617af.tar.gz kernel-de52b049d6d5af635d628d17fcb466d53a9617af.zip | |
hwmon: (pwm-fan) Declare pwm_fan_of_get_cooling_data static
Address the following sparse warnings.
drivers/hwmon/pwm-fan.c:176:5: warning:
symbol 'pwm_fan_of_get_cooling_data' was not declared. Should it be static?
drivers/hwmon/pwm-fan.c:176:5: warning:
no previous prototype for 'pwm_fan_of_get_cooling_data'
pwm_fan_of_get_cooling_data is only used in the pwm-fan driver and thus should
be declared static.
Cc: Lukasz Majewski <[email protected]>
Acked-by: Lukasz Majewski <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'drivers/hwmon/pwm-fan.c')
| -rw-r--r-- | drivers/hwmon/pwm-fan.c | 3 |
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 = { .set_cur_state = pwm_fan_set_cur_state, }; -int pwm_fan_of_get_cooling_data(struct device *dev, struct pwm_fan_ctx *ctx) +static int pwm_fan_of_get_cooling_data(struct device *dev, + struct pwm_fan_ctx *ctx) { struct device_node *np = dev->of_node; int num, i, ret; |
