diff options
author | Henrik Rydberg <rydberg@euromail.se> | 2008-10-18 20:27:35 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-20 08:52:35 -0700 |
commit | 05224091af06177c0ce7c1fae1f498455b47a6be (patch) | |
tree | a8d4589faf5a42f4f0a42f055953a74fabdf4f43 /drivers | |
parent | 865c295360f61c2f3634fb1387b4468fdc8287da (diff) | |
download | linux-stable-05224091af06177c0ce7c1fae1f498455b47a6be.tar.gz linux-stable-05224091af06177c0ce7c1fae1f498455b47a6be.tar.bz2 linux-stable-05224091af06177c0ce7c1fae1f498455b47a6be.zip |
hwmon: applesmc: specified number of bytes to read should match actual
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 <rydberg@euromail.se>
Cc: Nicolas Boichat <nicolas@boichat.ch>
Cc: Riki Oktarianto <rkoktarianto@gmail.com>
Cc: Mark M. Hoffman <mhoffman@lightlink.com>
Cc: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/hwmon/applesmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/applesmc.c b/drivers/hwmon/applesmc.c index b06b8e090a27..b401975bc0da 100644 --- 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)) |