aboutsummaryrefslogtreecommitdiff
path: root/cds9k-fan.c
diff options
context:
space:
mode:
authorDavid Phillips <david@yeah.nah.nz>2021-05-22 17:35:02 +1200
committerDavid Phillips <david@yeah.nah.nz>2021-05-22 17:35:02 +1200
commit0d185a49c8404ae388fb2c8cd7e1612680db4d89 (patch)
treecc64794c657895bc031e2771a9b6d9638d3c49d3 /cds9k-fan.c
parentcb1873c3270b9f0891a9bc0faebb45b23f3cb37b (diff)
downloadcds9k-0d185a49c8404ae388fb2c8cd7e1612680db4d89.tar.xz
Ensure driver functions and data are staticHEADmaster
Diffstat (limited to 'cds9k-fan.c')
-rw-r--r--cds9k-fan.c10
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);