From owner-svn-src-head@FreeBSD.ORG Fri Mar 13 22:28:37 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA5291065673; Fri, 13 Mar 2009 22:28:37 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 995918FC16; Fri, 13 Mar 2009 22:28:37 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n2DMSbSP074753; Fri, 13 Mar 2009 22:28:37 GMT (envelope-from thompsa@svn.freebsd.org) Received: (from thompsa@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n2DMSb8J074752; Fri, 13 Mar 2009 22:28:37 GMT (envelope-from thompsa@svn.freebsd.org) Message-Id: <200903132228.n2DMSb8J074752@svn.freebsd.org> From: Andrew Thompson Date: Fri, 13 Mar 2009 22:28:37 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r189776 - head/sys/dev/usb X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Mar 2009 22:28:38 -0000 Author: thompsa Date: Fri Mar 13 22:28:37 2009 New Revision: 189776 URL: http://svn.freebsd.org/changeset/base/189776 Log: HID usage minimum can be equal to the maximum. Submitted by: Hans Petter Selasky Tested by: Andreas Tobler Modified: head/sys/dev/usb/usb_hid.c Modified: head/sys/dev/usb/usb_hid.c ============================================================================== --- head/sys/dev/usb/usb_hid.c Fri Mar 13 19:05:34 2009 (r189775) +++ head/sys/dev/usb/usb_hid.c Fri Mar 13 22:28:37 2009 (r189776) @@ -441,7 +441,7 @@ hid_get_item(struct hid_data *s, struct /* sanity check */ if ((s->nusage < MAXUSAGE) && - (c->usage_minimum < c->usage_maximum)) { + (c->usage_minimum <= c->usage_maximum)) { /* add usage range */ s->usages_min[s->nusage] = c->usage_minimum;