LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 1/5] hwmon: applesmc: Specified number of bytes to read should match actual
@ 2008-09-17 22:21 Henrik Rydberg
0 siblings, 0 replies; only message in thread
From: Henrik Rydberg @ 2008-09-17 22:21 UTC (permalink / raw)
To: Nicolas Boichat, lm-sensors; +Cc: linux-kernel
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>
---
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 b06b8e0..b401975 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))
--
1.5.4.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-09-17 22:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-17 22:21 [PATCH 1/5] hwmon: applesmc: Specified number of bytes to read should match actual Henrik Rydberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).