svn commit: r309410 - head/share/man/man4

Nick Hibma n_hibma at FreeBSD.org
Fri Dec 2 11:32:12 UTC 2016


Author: n_hibma
Date: Fri Dec  2 11:32:11 2016
New Revision: 309410
URL: https://svnweb.freebsd.org/changeset/base/309410

Log:
  Fix man page:
  
  - It should say 'read' in the I2CREAD section.
  - last in the struct indicates the last command in a sequence, not the
    reverse.
  
  Reviewed by:	imp
  MFC after:	3 days

Modified:
  head/share/man/man4/iic.4

Modified: head/share/man/man4/iic.4
==============================================================================
--- head/share/man/man4/iic.4	Fri Dec  2 11:30:21 2016	(r309409)
+++ head/share/man/man4/iic.4	Fri Dec  2 11:32:11 2016	(r309410)
@@ -104,7 +104,8 @@ element is the number of bytes to write.
 The
 .Va last
 element is a boolean flag.
-It is non-zero when additional write commands will follow.
+It must be zero when additional read commands will follow, or non-zero if this
+is the last command.
 The
 .Va buf
 element is a pointer to the data to write to the bus.
@@ -120,11 +121,12 @@ The
 element is ignored.
 The
 .Va count
-element is the number of bytes to write.
+element is the number of bytes to read.
 The
 .Va last
 element is a boolean flag.
-It is non-zero when additional write commands will follow.
+It must be zero when additional read commands will follow, or non-zero if this
+is the last command.
 The
 .Va buf
 element is a pointer to where to store the data read from the bus.


More information about the svn-src-head mailing list