aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/adt7462.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2012-01-14 16:16:53 -0500
committerGuenter Roeck <guenter.roeck@ericsson.com>2012-03-18 21:27:02 -0400
commit724cc3316e6e1060f727958b4c327001c0bbd62c (patch)
treed7548e7ef405a329093c6b1da880f16af42fa99f /drivers/hwmon/adt7462.c
parent790fa38c125a39f4b31dc83aa4a74e68ec7704e4 (diff)
hwmon: (adt7462) Fix checkpatch issues
Fixed: ERROR: that open brace { should be on the previous line WARNING: please, no space before tabs Cc: Darrick J. Wong <djwong@us.ibm.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/adt7462.c')
-rw-r--r--drivers/hwmon/adt7462.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/drivers/hwmon/adt7462.c b/drivers/hwmon/adt7462.c
index fede95f65e90..339269f76e57 100644
--- a/drivers/hwmon/adt7462.c
+++ b/drivers/hwmon/adt7462.c
@@ -65,8 +65,8 @@ static const unsigned short normal_i2c[] = { 0x58, 0x5C, I2C_CLIENT_END };
65#define ADT7462_REG_PWM_TEMP_MIN_MAX_ADDR 0x5F 65#define ADT7462_REG_PWM_TEMP_MIN_MAX_ADDR 0x5F
66#define ADT7462_REG_PWM_TEMP_RANGE_BASE_ADDR 0x60 66#define ADT7462_REG_PWM_TEMP_RANGE_BASE_ADDR 0x60
67#define ADT7462_REG_PWM_TEMP_RANGE_MAX_ADDR 0x63 67#define ADT7462_REG_PWM_TEMP_RANGE_MAX_ADDR 0x63
68#define ADT7462_PWM_HYST_MASK 0x0F 68#define ADT7462_PWM_HYST_MASK 0x0F
69#define ADT7462_PWM_RANGE_MASK 0xF0 69#define ADT7462_PWM_RANGE_MASK 0xF0
70#define ADT7462_PWM_RANGE_SHIFT 4 70#define ADT7462_PWM_RANGE_SHIFT 4
71#define ADT7462_REG_PWM_CFG_BASE_ADDR 0x21 71#define ADT7462_REG_PWM_CFG_BASE_ADDR 0x21
72#define ADT7462_REG_PWM_CFG_MAX_ADDR 0x24 72#define ADT7462_REG_PWM_CFG_MAX_ADDR 0x24
@@ -85,7 +85,7 @@ static const unsigned short normal_i2c[] = { 0x58, 0x5C, I2C_CLIENT_END };
85#define ADT7462_PIN15_INPUT 0x20 85#define ADT7462_PIN15_INPUT 0x20
86#define ADT7462_PIN13_INPUT 0x40 86#define ADT7462_PIN13_INPUT 0x40
87#define ADT7462_PIN8_INPUT 0x80 87#define ADT7462_PIN8_INPUT 0x80
88#define ADT7462_PIN23_MASK 0x03 88#define ADT7462_PIN23_MASK 0x03
89#define ADT7462_PIN23_SHIFT 0 89#define ADT7462_PIN23_SHIFT 0
90#define ADT7462_PIN26_MASK 0x0C /* cfg2 */ 90#define ADT7462_PIN26_MASK 0x0C /* cfg2 */
91#define ADT7462_PIN26_SHIFT 2 91#define ADT7462_PIN26_SHIFT 2
@@ -99,7 +99,7 @@ static const unsigned short normal_i2c[] = { 0x58, 0x5C, I2C_CLIENT_END };
99#define ADT7462_PIN28_VOLT 0x5 99#define ADT7462_PIN28_VOLT 0x5
100 100
101#define ADT7462_REG_ALARM1 0xB8 101#define ADT7462_REG_ALARM1 0xB8
102#define ADT7462_LT_ALARM 0x02 102#define ADT7462_LT_ALARM 0x02
103#define ADT7462_R1T_ALARM 0x04 103#define ADT7462_R1T_ALARM 0x04
104#define ADT7462_R2T_ALARM 0x08 104#define ADT7462_R2T_ALARM 0x08
105#define ADT7462_R3T_ALARM 0x10 105#define ADT7462_R3T_ALARM 0x10
@@ -135,9 +135,9 @@ static const unsigned short normal_i2c[] = { 0x58, 0x5C, I2C_CLIENT_END };
135#define ADT7462_ALARM_FLAG_MASK 0x0F 135#define ADT7462_ALARM_FLAG_MASK 0x0F
136 136
137#define ADT7462_TEMP_COUNT 4 137#define ADT7462_TEMP_COUNT 4
138#define ADT7462_TEMP_REG(x) (ADT7462_REG_TEMP_BASE_ADDR + (x * 2)) 138#define ADT7462_TEMP_REG(x) (ADT7462_REG_TEMP_BASE_ADDR + ((x) * 2))
139#define ADT7462_TEMP_MIN_REG(x) (ADT7462_REG_MIN_TEMP_BASE_ADDR + (x)) 139#define ADT7462_TEMP_MIN_REG(x) (ADT7462_REG_MIN_TEMP_BASE_ADDR + (x))
140#define ADT7462_TEMP_MAX_REG(x) (ADT7462_REG_MAX_TEMP_BASE_ADDR + (x)) 140#define ADT7462_TEMP_MAX_REG(x) (ADT7462_REG_MAX_TEMP_BASE_ADDR + (x))
141#define TEMP_FRAC_OFFSET 6 141#define TEMP_FRAC_OFFSET 6
142 142
143#define ADT7462_FAN_COUNT 8 143#define ADT7462_FAN_COUNT 8
@@ -1727,8 +1727,7 @@ static SENSOR_DEVICE_ATTR(pwm3_auto_channels_temp, S_IWUSR | S_IRUGO,
1727static SENSOR_DEVICE_ATTR(pwm4_auto_channels_temp, S_IWUSR | S_IRUGO, 1727static SENSOR_DEVICE_ATTR(pwm4_auto_channels_temp, S_IWUSR | S_IRUGO,
1728 show_pwm_auto_temp, set_pwm_auto_temp, 3); 1728 show_pwm_auto_temp, set_pwm_auto_temp, 3);
1729 1729
1730static struct attribute *adt7462_attr[] = 1730static struct attribute *adt7462_attr[] = {
1731{
1732 &sensor_dev_attr_temp1_max.dev_attr.attr, 1731 &sensor_dev_attr_temp1_max.dev_attr.attr,
1733 &sensor_dev_attr_temp2_max.dev_attr.attr, 1732 &sensor_dev_attr_temp2_max.dev_attr.attr,
1734 &sensor_dev_attr_temp3_max.dev_attr.attr, 1733 &sensor_dev_attr_temp3_max.dev_attr.attr,