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
02dd2c14
Commit
02dd2c14
authored
Apr 12, 2004
by
Jean Delvare
Committed by
Greg Kroah-Hartman
Apr 12, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] I2C: Fix voltage rounding in lm80
This one line patch fixes voltage rounding in the lm80 chip driver.
parent
998f14c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
drivers/i2c/chips/lm80.c
drivers/i2c/chips/lm80.c
+1
-1
No files found.
drivers/i2c/chips/lm80.c
View file @
02dd2c14
...
...
@@ -68,7 +68,7 @@ SENSORS_INSMOD_1(lm80);
these macros are called: arguments may be evaluated more than once.
Fixing this is just not worth it. */
#define IN_TO_REG(val) (SENSORS_LIMIT((
val
)/10,0,255))
#define IN_TO_REG(val) (SENSORS_LIMIT((
(val)+5
)/10,0,255))
#define IN_FROM_REG(val) ((val)*10)
static
inline
unsigned
char
FAN_TO_REG
(
unsigned
rpm
,
unsigned
div
)
...
...
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