summaryrefslogtreecommitdiff
path: root/tools/i2cset.8
diff options
context:
space:
mode:
authorkhali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0>2008-11-20 19:41:19 +0000
committerkhali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0>2008-11-20 19:41:19 +0000
commit448fc0663482d4513737239aed4ab4b26372fd33 (patch)
tree3fa11800c21f8e565906de71350e1a2561131d7c /tools/i2cset.8
parent91f41e6775f87a6f9712142280e8368b6747f9ca (diff)
downloadi2c-tools-448fc0663482d4513737239aed4ab4b26372fd33.tar.gz
Make reading back the written value optional.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5393 7894878c-1315-0410-8ee3-d5d059ff63e0
Diffstat (limited to 'tools/i2cset.8')
-rw-r--r--tools/i2cset.86
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/i2cset.8 b/tools/i2cset.8
index 51ea8c8..2b4ce3a 100644
--- a/tools/i2cset.8
+++ b/tools/i2cset.8
@@ -7,6 +7,7 @@ i2cset \- set I2C registers
.RB [ -f ]
.RB [ -y ]
.RB [ "-m mask" ]
+.RB [ -r ]
.I i2cbus
.I chip-address
.I data-address
@@ -46,6 +47,11 @@ are taken from \fIvalue\fR, while bits set to 0 will be read from
this parameter assumes that the read and write operations for the specified
mode are symmetrical for the device you are accessing. This may or may not
be the case, as neither I2C nor SMBus guarantees this.
+.TP
+.B -r
+Read back the value right after writing it, and compare the result with the
+value written. This used to be the default behavior. The same limitations
+apply as those of option \fB-m\fR.
.PP
There are three required options to i2cset. \fIi2cbus\fR indicates the number
or name of the I2C bus to be scanned. This number should correspond to one of