Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libusbhid Fix copy-paste-o. Per the HID spec, Global It...



details:   https://anonhg.NetBSD.org/src/rev/8e7654cfa373
branches:  trunk
changeset: 750548:8e7654cfa373
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Tue Jan 05 17:57:06 2010 +0000

description:
Fix copy-paste-o.  Per the HID spec, Global Item Tag 0b001101nn is
Physical Minimum, not a alias for Physical Maximum.

diffstat:

 lib/libusbhid/parse.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r a32c927b37bf -r 8e7654cfa373 lib/libusbhid/parse.c
--- a/lib/libusbhid/parse.c     Tue Jan 05 17:23:18 2010 +0000
+++ b/lib/libusbhid/parse.c     Tue Jan 05 17:57:06 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parse.c,v 1.5 2004/01/05 17:55:48 augustss Exp $       */
+/*     $NetBSD: parse.c,v 1.6 2010/01/05 17:57:06 jakllsch Exp $       */
 
 /*
  * Copyright (c) 1999, 2001 Lennart Augustsson <augustss%NetBSD.org@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: parse.c,v 1.5 2004/01/05 17:55:48 augustss Exp $");
+__RCSID("$NetBSD: parse.c,v 1.6 2010/01/05 17:57:06 jakllsch Exp $");
 
 #include <assert.h>
 #include <stdlib.h>
@@ -333,7 +333,7 @@
                                c->logical_maximum = dval;
                                break;
                        case 3:
-                               c->physical_maximum = dval;
+                               c->physical_minimum = dval;
                                break;
                        case 4:
                                c->physical_maximum = dval;



Home | Main Index | Thread Index | Old Index