summaryrefslogtreecommitdiffstats
path: root/sys/dev/atkbdc
diff options
context:
space:
mode:
authoryokota <yokota@FreeBSD.org>2000-07-28 03:48:46 +0000
committeryokota <yokota@FreeBSD.org>2000-07-28 03:48:46 +0000
commit289a3303095499b5b63ae7ea1618c5c845cb6c41 (patch)
tree5bdfcf2aeca53188b0e808f3221c75f5be262709 /sys/dev/atkbdc
parentbbd3aeb6e12f56c6f6e909b527a1988545a600c8 (diff)
downloadFreeBSD-src-289a3303095499b5b63ae7ea1618c5c845cb6c41.zip
FreeBSD-src-289a3303095499b5b63ae7ea1618c5c845cb6c41.tar.gz
Fix GENERIC_MOUSE_ENTRY.
Submitted by: Graham Wheeler <gram@cequrux.com> and gibbs
Diffstat (limited to 'sys/dev/atkbdc')
-rw-r--r--sys/dev/atkbdc/psm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/atkbdc/psm.c b/sys/dev/atkbdc/psm.c
index b3433c9..5b7e54f 100644
--- a/sys/dev/atkbdc/psm.c
+++ b/sys/dev/atkbdc/psm.c
@@ -293,7 +293,7 @@ static struct {
{ MOUSE_MODEL_GENERIC,
0xc0, MOUSE_PS2_PACKETSIZE, NULL, },
};
-#define GENERIC_MOUSE_ENTRY 7
+#define GENERIC_MOUSE_ENTRY ((sizeof(vendortype) / sizeof(*vendortype)) - 1)
/* device driver declarateion */
static device_method_t psm_methods[] = {
OpenPOWER on IntegriCloud