Skip to contentSkip to conversation

hwmon: applesmc: Specified number of bytes to read should match actual

PATCH New Henrik Rydberg 1 participant 1 message Sep 17, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/5 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.

---
 drivers/hwmon/applesmc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/hwmon/applesmc.c +1 -1
index b06b8e0..b401975 100644
@@ -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))
Signature · 8 lines
1.5.4.3



_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors