docs/157075: [patch] Use correct device names in gpioctl(8) man page
Henrik Brix Andersen
brix at FreeBSD.org
Sun May 15 21:40:09 UTC 2011
>Number: 157075
>Category: docs
>Synopsis: [patch] Use correct device names in gpioctl(8) man page
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-doc
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: doc-bug
>Submitter-Id: current-users
>Arrival-Date: Sun May 15 21:40:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Henrik Brix Andersen
>Release: FreeBSD 9.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD drpepper.brixandersen.dk 9.0-CURRENT FreeBSD 9.0-CURRENT #3 r221961: Sun May 15 17:11:34 CEST 2011 root at drpepper.brixandersen.dk:/usr/obj/usr/home/brix/projects/freebsd/src/head/sys/GENERIC i386
>Description:
The gpioctl(8) man page incorrectly lists the example device name as /dev/gpioctl0. The correct name is /dev/gpioc0.
>How-To-Repeat:
>Fix:
The following patch corrects the device name in the man page.
--- gpioctl.8.diff begins here ---
Index: usr.sbin/gpioctl/gpioctl.8
===================================================================
--- usr.sbin/gpioctl/gpioctl.8 (revision 221961)
+++ usr.sbin/gpioctl/gpioctl.8 (working copy)
@@ -27,7 +27,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd September 27, 2010
+.Dd May 15, 2011
.Dt GPIOCTL 1
.Os
.Sh NAME
@@ -93,17 +93,17 @@
.Sh EXAMPLES
.Bl -bullet
.It
-List pins available on GPIO controller defined by device /dev/gpioctl0
+List pins available on GPIO controller defined by device /dev/gpioc0
.Pp
-gpioctl -f /dev/gpioctl0 -l
+gpioctl -f /dev/gpioc0 -l
.It
Set the value of pin 12 to 1
.Pp
-gpioctl -f /dev/gpioctl0 12 1
+gpioctl -f /dev/gpioc0 12 1
.It
Configure pin 12 to be input pin
.Pp
-gpioctl -f /dev/gpioctl0 -c 12 IN
+gpioctl -f /dev/gpioc0 -c 12 IN
.El
.Sh HISTORY
The
--- gpioctl.8.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-doc
mailing list