diff options
Diffstat (limited to 'cds9k-fan.c')
-rw-r--r-- | cds9k-fan.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/cds9k-fan.c b/cds9k-fan.c index 8a58aa0..fa28e30 100644 --- a/cds9k-fan.c +++ b/cds9k-fan.c @@ -22,7 +22,9 @@ static unsigned int cds9k_rpm_to_pwm(long rpm) return max_pwm * rpm / max_rpm; } -static umode_t cds9k_fan_is_visible(const void *fan, enum hwmon_sensor_types type, u32 attr, int channel) +static umode_t cds9k_fan_is_visible(const void *fan, + enum hwmon_sensor_types type, u32 attr, + int channel) { if (channel != 0) return 0; @@ -36,7 +38,8 @@ static umode_t cds9k_fan_is_visible(const void *fan, enum hwmon_sensor_types typ return 0; } -static int cds9k_fan_read(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, long *value) +static int cds9k_fan_read(struct device *dev, enum hwmon_sensor_types type, + u32 attr, int channel, long *value) { int ret; struct cds9k_fan *fan = dev_get_drvdata(dev); @@ -64,7 +67,8 @@ static int cds9k_fan_read(struct device *dev, enum hwmon_sensor_types type, u32 return 0; } -static int cds9k_fan_write(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, long value) +static int cds9k_fan_write(struct device *dev, enum hwmon_sensor_types type, + u32 attr, int channel, long value) { unsigned int target_pwm; struct cds9k_fan *fan = dev_get_drvdata(dev); |