diff options
author | Guenter Roeck <linux@roeck-us.net> | 2013-04-21 18:13:28 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2013-04-21 18:42:52 +0200 |
commit | 6445e6600fa632448cac64e71119310378464ad9 (patch) | |
tree | 3959206862ad53b0edf4dcd958daee577442e08a /drivers/hwmon/nct6775.c | |
parent | hwmon: (nct6775) Constify strings (diff) | |
download | linux-6445e6600fa632448cac64e71119310378464ad9.tar.xz linux-6445e6600fa632448cac64e71119310378464ad9.zip |
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/nct6775.c')
-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) data->fan_div[1] = (i & 0x70) >> 4; i = nct6775_read_value(data, NCT6775_REG_FANDIV2); data->fan_div[2] = i & 0x7; - if (data->has_fan & (1<<3)) + if (data->has_fan & (1 << 3)) data->fan_div[3] = (i & 0x70) >> 4; } @@ -1076,7 +1076,7 @@ static struct nct6775_data *nct6775_update_device(struct device *dev) mutex_lock(&data->update_lock); - if (time_after(jiffies, data->last_updated + HZ + HZ/2) + if (time_after(jiffies, data->last_updated + HZ + HZ / 2) || !data->valid) { /* Fan clock dividers */ nct6775_update_fan_div_common(data); @@ -1177,7 +1177,7 @@ store_in_reg(struct device *dev, struct device_attribute *attr, const char *buf, return err; mutex_lock(&data->update_lock); data->in[nr][index] = in_to_reg(val, nr); - nct6775_write_value(data, data->REG_IN_MINMAX[index-1][nr], + nct6775_write_value(data, data->REG_IN_MINMAX[index - 1][nr], data->in[nr][index]); mutex_unlock(&data->update_lock); return count; |