projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
865c295
)
hwmon: applesmc: specified number of bytes to read should match actual
author
Henrik Rydberg
<
[email protected]
>
Sun, 19 Oct 2008 03:27:35 +0000
(20:27 -0700)
committer
Linus Torvalds
<
[email protected]
>
Mon, 20 Oct 2008 15:52:35 +0000
(08:52 -0700)
At one single place in the code, the specified number of bytes to read and
the actual number of bytes read differ by one. This one-liner patch fixes
that inconsistency.
Signed-off-by: Henrik Rydberg <
[email protected]
>
Cc: Nicolas Boichat <
[email protected]
>
Cc: Riki Oktarianto <
[email protected]
>
Cc: Mark M. Hoffman <
[email protected]
>
Cc: Jean Delvare <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/hwmon/applesmc.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/applesmc.c
b/drivers/hwmon/applesmc.c
index b06b8e090a278e9164c8603d7fa1d311be17317e..b401975bc0da0509221c478d5c7544c9c555d103 100644
(file)
--- a/
drivers/hwmon/applesmc.c
+++ b/
drivers/hwmon/applesmc.c
@@
-325,7
+325,7
@@
static int applesmc_get_key_type(char* key, char* type)
return -EIO;
}
- outb(
5
, APPLESMC_DATA_PORT);
+ outb(
6
, APPLESMC_DATA_PORT);
for (i = 0; i < 6; i++) {
if (__wait_status(0x05))