diff options
author | Guenter Roeck <linux@roeck-us.net> | 2012-01-19 14:02:21 -0500 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2012-03-18 21:27:02 -0400 |
commit | 790fa38c125a39f4b31dc83aa4a74e68ec7704e4 (patch) | |
tree | 16d84726d54ba15c0f611b01f2f74895ad28bacc /drivers/hwmon/ltc4215.c | |
parent | 430b4fcd82eb3e71254c1ea13998524301489f2f (diff) |
hwmon: (ltc4215) Fix multi-line comments
Cc: Ira W. Snyder <iws@ovro.caltech.edu>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Ira W. Snyder <iws@ovro.caltech.edu>
Diffstat (limited to 'drivers/hwmon/ltc4215.c')
-rw-r--r-- | drivers/hwmon/ltc4215.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/drivers/hwmon/ltc4215.c b/drivers/hwmon/ltc4215.c index 0789b635ba86..429c5b2b66fd 100644 --- a/drivers/hwmon/ltc4215.c +++ b/drivers/hwmon/ltc4215.c | |||
@@ -91,8 +91,10 @@ static int ltc4215_get_voltage(struct device *dev, u8 reg) | |||
91 | voltage = regval * 605 / 10; | 91 | voltage = regval * 605 / 10; |
92 | break; | 92 | break; |
93 | case LTC4215_ADIN: | 93 | case LTC4215_ADIN: |
94 | /* The ADIN input is divided by 12.5, and has 4.82 mV | 94 | /* |
95 | * per increment, so we have the additional multiply */ | 95 | * The ADIN input is divided by 12.5, and has 4.82 mV |
96 | * per increment, so we have the additional multiply | ||
97 | */ | ||
96 | voltage = regval * 482 * 125 / 1000; | 98 | voltage = regval * 482 * 125 / 1000; |
97 | break; | 99 | break; |
98 | default: | 100 | default: |
@@ -109,7 +111,8 @@ static unsigned int ltc4215_get_current(struct device *dev) | |||
109 | { | 111 | { |
110 | struct ltc4215_data *data = ltc4215_update_device(dev); | 112 | struct ltc4215_data *data = ltc4215_update_device(dev); |
111 | 113 | ||
112 | /* The strange looking conversions that follow are fixed-point | 114 | /* |
115 | * The strange looking conversions that follow are fixed-point | ||
113 | * math, since we cannot do floating point in the kernel. | 116 | * math, since we cannot do floating point in the kernel. |
114 | * | 117 | * |
115 | * Step 1: convert sense register to microVolts | 118 | * Step 1: convert sense register to microVolts |
@@ -176,7 +179,8 @@ static ssize_t ltc4215_show_alarm(struct device *dev, | |||
176 | return snprintf(buf, PAGE_SIZE, "%u\n", (reg & mask) ? 1 : 0); | 179 | return snprintf(buf, PAGE_SIZE, "%u\n", (reg & mask) ? 1 : 0); |
177 | } | 180 | } |
178 | 181 | ||
179 | /* These macros are used below in constructing device attribute objects | 182 | /* |
183 | * These macros are used below in constructing device attribute objects | ||
180 | * for use with sysfs_create_group() to make a sysfs device file | 184 | * for use with sysfs_create_group() to make a sysfs device file |
181 | * for each register. | 185 | * for each register. |
182 | */ | 186 | */ |
@@ -215,7 +219,8 @@ LTC4215_ALARM(in1_min_alarm, (1 << 1), LTC4215_STATUS); | |||
215 | LTC4215_VOLTAGE(in2_input, LTC4215_SOURCE); | 219 | LTC4215_VOLTAGE(in2_input, LTC4215_SOURCE); |
216 | LTC4215_ALARM(in2_min_alarm, (1 << 3), LTC4215_STATUS); | 220 | LTC4215_ALARM(in2_min_alarm, (1 << 3), LTC4215_STATUS); |
217 | 221 | ||
218 | /* Finally, construct an array of pointers to members of the above objects, | 222 | /* |
223 | * Finally, construct an array of pointers to members of the above objects, | ||
219 | * as required for sysfs_create_group() | 224 | * as required for sysfs_create_group() |
220 | */ | 225 | */ |
221 | static struct attribute *ltc4215_attributes[] = { | 226 | static struct attribute *ltc4215_attributes[] = { |