Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
130067d7
Commit
130067d7
authored
Jan 19, 2012
by
Guenter Roeck
Committed by
Guenter Roeck
Mar 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hwmon: (w83l785ts) Fix multi-line comments
Signed-off-by:
Guenter Roeck
<
linux@roeck-us.net
>
parent
79501333
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
drivers/hwmon/w83l785ts.c
drivers/hwmon/w83l785ts.c
+9
-6
No files found.
drivers/hwmon/w83l785ts.c
View file @
130067d7
...
...
@@ -116,8 +116,7 @@ struct w83l785ts_data {
unsigned
long
last_updated
;
/* in jiffies */
/* registers values */
s8
temp
[
2
];
/* 0: input
1: critical limit */
s8
temp
[
2
];
/* 0: input, 1: critical limit */
};
/*
...
...
@@ -250,8 +249,10 @@ static u8 w83l785ts_read_value(struct i2c_client *client, u8 reg, u8 defval)
struct
device
*
dev
;
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
))
{
dev
=
&
client
->
dev
;
prefix
=
""
;
...
...
@@ -260,9 +261,11 @@ static u8 w83l785ts_read_value(struct i2c_client *client, u8 reg, u8 defval)
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
* default value requested by the caller. */
* default value requested by the caller.
*/
for
(
i
=
1
;
i
<=
MAX_RETRIES
;
i
++
)
{
value
=
i2c_smbus_read_byte_data
(
client
,
reg
);
if
(
value
>=
0
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment