From 1ef8bb4729fe6a6a026d4f10985ce55f4b36997a Mon Sep 17 00:00:00 2001 From: jmc Date: Tue, 13 May 2014 14:05:02 +0000 Subject: [PATCH] various macro fixes; --- lib/libusbhid/usbhid.3 | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/lib/libusbhid/usbhid.3 b/lib/libusbhid/usbhid.3 index 271d296229d..1002eee8d9f 100644 --- a/lib/libusbhid/usbhid.3 +++ b/lib/libusbhid/usbhid.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: usbhid.3,v 1.16 2014/05/12 17:03:28 mpi Exp $ +.\" $OpenBSD: usbhid.3,v 1.17 2014/05/13 14:05:02 jmc Exp $ .\" $NetBSD: usbhid.3,v 1.5 2002/02/07 07:00:52 ross Exp $ .\" .\" Copyright (c) 1999, 2001 Lennart Augustsson @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: May 12 2014 $ +.Dd $Mdocdate: May 13 2014 $ .Dt USBHID 3 .Os .Sh NAME @@ -48,7 +48,7 @@ .Nm hid_set_data .Nd USB HID access routines .Sh SYNOPSIS -.Fd #include \*[Lt]usbhid.h\*[Gt] +.In usbhid.h .Ft report_desc_t .Fn hid_get_report_desc "int file" .Ft report_desc_t @@ -122,13 +122,12 @@ To parse the report descriptor the function should be called with a report descriptor and a set that describes which items that are interesting. The set is obtained by or-ing together values -.Fa "(1 \*[Lt]\*[Lt] k)" +.Fa (1 << k) where .Fa k is an item of type .Fa hid_kind_t . -The desired report ID, or -.Dv -1 +The desired report ID, or \-1 to obtain items of all report IDs, is given by .Fa id . @@ -211,9 +210,7 @@ can be used to put data into a report (which must be zeroed first). The default HID usage table. .\" .Sh EXAMPLES .Sh SEE ALSO -The -.Tn USB -specifications can be found at: +The USB specifications can be found at: .Lk http://www.usb.org/developers/docs/ .Pp .Xr uhid 4 , -- 2.20.1