From FreeBSD via OpenBSD:

Global Item #3 should be Physical Minimum not Maximum according to the
HID spec.
This commit is contained in:
jmcneill 2015-02-08 23:43:14 +00:00
parent cfdedc1449
commit 6315e99e35
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: hid.c,v 1.35 2012/02/24 06:48:23 mrg Exp $ */
/* $NetBSD: hid.c,v 1.36 2015/02/08 23:43:14 jmcneill Exp $ */
/* $FreeBSD: src/sys/dev/usb/hid.c,v 1.11 1999/11/17 22:33:39 n_hibma Exp $ */
/*
@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: hid.c,v 1.35 2012/02/24 06:48:23 mrg Exp $");
__KERNEL_RCSID(0, "$NetBSD: hid.c,v 1.36 2015/02/08 23:43:14 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -267,7 +267,7 @@ hid_get_item(struct hid_data *s, struct hid_item *h)
c->logical_maximum = dval;
break;
case 3:
c->physical_maximum = dval;
c->physical_minimum = dval;
break;
case 4:
c->physical_maximum = dval;