summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/input/ums.c
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2010-09-02 03:52:04 +0000
committerthompsa <thompsa@FreeBSD.org>2010-09-02 03:52:04 +0000
commit4b6a0266b17bae233b11c0019a17601b04a7fb9c (patch)
tree129e840909f5ade8f34dba645ac7ee2187b17324 /sys/dev/usb/input/ums.c
parent25f8fce8ff7370457bc3b695f289739a914926cb (diff)
downloadFreeBSD-src-4b6a0266b17bae233b11c0019a17601b04a7fb9c.zip
FreeBSD-src-4b6a0266b17bae233b11c0019a17601b04a7fb9c.tar.gz
Fix UMS_BUTTON_MAX define name
Diffstat (limited to 'sys/dev/usb/input/ums.c')
-rw-r--r--sys/dev/usb/input/ums.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/input/ums.c b/sys/dev/usb/input/ums.c
index 1a5acc79..c0cab20 100644
--- a/sys/dev/usb/input/ums.c
+++ b/sys/dev/usb/input/ums.c
@@ -480,7 +480,7 @@ ums_hid_parse(struct ums_softc *sc, device_t dev, const uint8_t *buf,
/* detect other buttons */
- for (j = 0; (i < UMS_BUTTONS_MAX) && (j < 2); i++, j++) {
+ for (j = 0; (i < UMS_BUTTON_MAX) && (j < 2); i++, j++) {
if (!hid_locate(buf, len, HID_USAGE2(HUP_MICROSOFT, (j + 1)),
hid_input, index, &info->sc_loc_btn[i], NULL,
&info->sc_iid_btn[i])) {
OpenPOWER on IntegriCloud