summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorkhali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0>2012-09-07 14:01:51 +0000
committerkhali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0>2012-09-07 14:01:51 +0000
commitc6d0b5ef2fe8603a207f45a5a9f0c0eeae913b66 (patch)
tree4bfa75d8f494e17c2fc0be61cc2cf25274c2e35f /tools
parent6beb44f4d75e51ec3f43f369640991916e85dddd (diff)
downloadi2c-tools-c6d0b5ef2fe8603a207f45a5a9f0c0eeae913b66.tar.gz
Consistently use "SMBus receive byte" for the short byte read we use
for chip detection. "SMBus read byte" is a different SMBus transaction. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6065 7894878c-1315-0410-8ee3-d5d059ff63e0
Diffstat (limited to 'tools')
-rw-r--r--tools/i2cdetect.82
-rw-r--r--tools/i2cdetect.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/i2cdetect.8 b/tools/i2cdetect.8
index 47cad04..19d90df 100644
--- a/tools/i2cdetect.8
+++ b/tools/i2cdetect.8
@@ -63,7 +63,7 @@ Not recommended. This is known to corrupt the Atmel AT24RF08 EEPROM
found on many IBM Thinkpad laptops.
.TP
.B "\-r"
-Use SMBus "read byte" commands for probing (by default, the command
+Use SMBus "receive byte" commands for probing (by default, the command
used is the one believed to be the safest for each address).
Not recommended. This is known to lock SMBus on various write-only
chips (most notably clock chips at address 0x69).
diff --git a/tools/i2cdetect.c b/tools/i2cdetect.c
index 8041749..5543382 100644
--- a/tools/i2cdetect.c
+++ b/tools/i2cdetect.c
@@ -343,7 +343,7 @@ int main(int argc, char *argv[])
exit(1);
}
if (mode == MODE_READ && !(funcs & I2C_FUNC_SMBUS_READ_BYTE)) {
- fprintf(stderr, "Error: Can't use SMBus Read Byte command "
+ fprintf(stderr, "Error: Can't use SMBus Receive Byte command "
"on this bus\n");
close(file);
exit(1);
@@ -353,7 +353,7 @@ int main(int argc, char *argv[])
fprintf(stderr, "Warning: Can't use SMBus Quick Write "
"command, will skip some addresses\n");
if (!(funcs & I2C_FUNC_SMBUS_READ_BYTE))
- fprintf(stderr, "Warning: Can't use SMBus Read Byte "
+ fprintf(stderr, "Warning: Can't use SMBus Receive Byte "
"command, will skip some addresses\n");
}
@@ -365,7 +365,7 @@ int main(int argc, char *argv[])
fprintf(stderr, "I will probe file %s%s.\n", filename,
mode==MODE_QUICK?" using quick write commands":
- mode==MODE_READ?" using read byte commands":"");
+ mode==MODE_READ?" using receive byte commands":"");
fprintf(stderr, "I will probe address range 0x%02x-0x%02x.\n",
first, last);