From 8e349925f439c439539b1bdb045f5e5e7e0efff8 Mon Sep 17 00:00:00 2001 From: Nick Hibma Date: Fri, 2 Dec 2016 11:32:11 +0000 Subject: [PATCH] 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 --- share/man/man4/iic.4 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/share/man/man4/iic.4 b/share/man/man4/iic.4 index a650c8d9c63..a63a039702e 100644 --- a/share/man/man4/iic.4 +++ b/share/man/man4/iic.4 @@ -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.