diff options
author | Guenter Roeck <linux@roeck-us.net> | 2013-04-21 12:13:28 -0400 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2013-04-21 12:42:52 -0400 |
commit | 6445e6600fa632448cac64e71119310378464ad9 (patch) | |
tree | 3959206862ad53b0edf4dcd958daee577442e08a /drivers/hwmon | |
parent | 6d4b3621bb613da51ae7474c50f5cb37465b6f37 (diff) |
hwmon: (nct6775) Fix coding style problems
Add space around binary operators (CodingStyle, chapter 3.1).
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/nct6775.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/hwmon/nct6775.c b/drivers/hwmon/nct6775.c index 14da90e09ff1..f43f5e571db9 100644 --- a/drivers/hwmon/nct6775.c +++ b/drivers/hwmon/nct6775.c | |||
@@ -833,7 +833,7 @@ static void nct6775_update_fan_div(struct nct6775_data *data) | |||
833 | data->fan_div[1] = (i & 0x70) >> 4; | 833 | data->fan_div[1] = (i & 0x70) >> 4; |
834 | i = nct6775_read_value(data, NCT6775_REG_FANDIV2); | 834 | i = nct6775_read_value(data, NCT6775_REG_FANDIV2); |
835 | data->fan_div[2] = i & 0x7; | 835 | data->fan_div[2] = i & 0x7; |
836 | if (data->has_fan & (1<<3)) | 836 | if (data->has_fan & (1 << 3)) |
837 | data->fan_div[3] = (i & 0x70) >> 4; | 837 | data->fan_div[3] = (i & 0x70) >> 4; |
838 | } | 838 | } |
839 | 839 | ||
@@ -1076,7 +1076,7 @@ static struct nct6775_data *nct6775_update_device(struct device *dev) | |||
1076 | 1076 | ||
1077 | mutex_lock(&data->update_lock); | 1077 | mutex_lock(&data->update_lock); |
1078 | 1078 | ||
1079 | if (time_after(jiffies, data->last_updated + HZ + HZ/2) | 1079 | if (time_after(jiffies, data->last_updated + HZ + HZ / 2) |
1080 | || !data->valid) { | 1080 | || !data->valid) { |
1081 | /* Fan clock dividers */ | 1081 | /* Fan clock dividers */ |
1082 | nct6775_update_fan_div_common(data); | 1082 | nct6775_update_fan_div_common(data); |
@@ -1177,7 +1177,7 @@ store_in_reg(struct device *dev, struct device_attribute *attr, const char *buf, | |||
1177 | return err; | 1177 | return err; |
1178 | mutex_lock(&data->update_lock); | 1178 | mutex_lock(&data->update_lock); |
1179 | data->in[nr][index] = in_to_reg(val, nr); | 1179 | data->in[nr][index] = in_to_reg(val, nr); |
1180 | nct6775_write_value(data, data->REG_IN_MINMAX[index-1][nr], | 1180 | nct6775_write_value(data, data->REG_IN_MINMAX[index - 1][nr], |
1181 | data->in[nr][index]); | 1181 | data->in[nr][index]); |
1182 | mutex_unlock(&data->update_lock); | 1182 | mutex_unlock(&data->update_lock); |
1183 | return count; | 1183 | return count; |