mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-18 21:14:28 +00:00
hwmon: (w83l785ts) Fix multi-line comments
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
795013333b
commit
130067d7c6
1 changed files with 9 additions and 6 deletions
|
@ -116,8 +116,7 @@ struct w83l785ts_data {
|
||||||
unsigned long last_updated; /* in jiffies */
|
unsigned long last_updated; /* in jiffies */
|
||||||
|
|
||||||
/* registers values */
|
/* registers values */
|
||||||
s8 temp[2]; /* 0: input
|
s8 temp[2]; /* 0: input, 1: critical limit */
|
||||||
1: critical limit */
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -250,8 +249,10 @@ static u8 w83l785ts_read_value(struct i2c_client *client, u8 reg, u8 defval)
|
||||||
struct device *dev;
|
struct device *dev;
|
||||||
const char *prefix;
|
const char *prefix;
|
||||||
|
|
||||||
/* We might be called during detection, at which point the client
|
/*
|
||||||
isn't yet fully initialized, so we can't use dev_dbg on it */
|
* We might be called during detection, at which point the client
|
||||||
|
* isn't yet fully initialized, so we can't use dev_dbg on it
|
||||||
|
*/
|
||||||
if (i2c_get_clientdata(client)) {
|
if (i2c_get_clientdata(client)) {
|
||||||
dev = &client->dev;
|
dev = &client->dev;
|
||||||
prefix = "";
|
prefix = "";
|
||||||
|
@ -260,9 +261,11 @@ static u8 w83l785ts_read_value(struct i2c_client *client, u8 reg, u8 defval)
|
||||||
prefix = "w83l785ts: ";
|
prefix = "w83l785ts: ";
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Frequent read errors have been reported on Asus boards, so we
|
/*
|
||||||
|
* Frequent read errors have been reported on Asus boards, so we
|
||||||
* retry on read errors. If it still fails (unlikely), return the
|
* retry on read errors. If it still fails (unlikely), return the
|
||||||
* default value requested by the caller. */
|
* default value requested by the caller.
|
||||||
|
*/
|
||||||
for (i = 1; i <= MAX_RETRIES; i++) {
|
for (i = 1; i <= MAX_RETRIES; i++) {
|
||||||
value = i2c_smbus_read_byte_data(client, reg);
|
value = i2c_smbus_read_byte_data(client, reg);
|
||||||
if (value >= 0) {
|
if (value >= 0) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue