diff options
author | Guenter Roeck <linux@roeck-us.net> | 2012-01-19 14:02:28 -0500 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2012-03-18 21:27:38 -0400 |
commit | 130067d7c62dea33f82fbba96ebb042f6fac9474 (patch) | |
tree | 7bcc862d013bbb672e602164ef95b3228b380907 | |
parent | 795013333b613ba79b7df57515c9afacac6f167d (diff) |
hwmon: (w83l785ts) Fix multi-line comments
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
-rw-r--r-- | drivers/hwmon/w83l785ts.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/drivers/hwmon/w83l785ts.c b/drivers/hwmon/w83l785ts.c index bc071441a3fe..5f14e3897058 100644 --- a/drivers/hwmon/w83l785ts.c +++ b/drivers/hwmon/w83l785ts.c | |||
@@ -116,8 +116,7 @@ struct w83l785ts_data { | |||
116 | unsigned long last_updated; /* in jiffies */ | 116 | unsigned long last_updated; /* in jiffies */ |
117 | 117 | ||
118 | /* registers values */ | 118 | /* registers values */ |
119 | s8 temp[2]; /* 0: input | 119 | s8 temp[2]; /* 0: input, 1: critical limit */ |
120 | 1: critical limit */ | ||
121 | }; | 120 | }; |
122 | 121 | ||
123 | /* | 122 | /* |
@@ -250,8 +249,10 @@ static u8 w83l785ts_read_value(struct i2c_client *client, u8 reg, u8 defval) | |||
250 | struct device *dev; | 249 | struct device *dev; |
251 | const char *prefix; | 250 | const char *prefix; |
252 | 251 | ||
253 | /* We might be called during detection, at which point the client | 252 | /* |
254 | isn't yet fully initialized, so we can't use dev_dbg on it */ | 253 | * We might be called during detection, at which point the client |
254 | * isn't yet fully initialized, so we can't use dev_dbg on it | ||
255 | */ | ||
255 | if (i2c_get_clientdata(client)) { | 256 | if (i2c_get_clientdata(client)) { |
256 | dev = &client->dev; | 257 | dev = &client->dev; |
257 | prefix = ""; | 258 | prefix = ""; |
@@ -260,9 +261,11 @@ static u8 w83l785ts_read_value(struct i2c_client *client, u8 reg, u8 defval) | |||
260 | prefix = "w83l785ts: "; | 261 | prefix = "w83l785ts: "; |
261 | } | 262 | } |
262 | 263 | ||
263 | /* Frequent read errors have been reported on Asus boards, so we | 264 | /* |
265 | * Frequent read errors have been reported on Asus boards, so we | ||
264 | * retry on read errors. If it still fails (unlikely), return the | 266 | * retry on read errors. If it still fails (unlikely), return the |
265 | * default value requested by the caller. */ | 267 | * default value requested by the caller. |
268 | */ | ||
266 | for (i = 1; i <= MAX_RETRIES; i++) { | 269 | for (i = 1; i <= MAX_RETRIES; i++) { |
267 | value = i2c_smbus_read_byte_data(client, reg); | 270 | value = i2c_smbus_read_byte_data(client, reg); |
268 | if (value >= 0) { | 271 | if (value >= 0) { |