vsxxxaa.c (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) vsxxxaa.c (a9f08ad7adb3d2f90e11efbb40a1246ef95b0c04)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Driver for DEC VSXXX-AA mouse (hockey-puck mouse, ball or two rollers)
4 * DEC VSXXX-GA mouse (rectangular mouse, with ball)
5 * DEC VSXXX-AB tablet (digitizer with hair cross or stylus)
6 *
7 * Copyright (C) 2003-2004 by Jan-Benedict Glaw <jbglaw@lug-owl.de>
8 *

--- 124 unchanged lines hidden (view full) ---

133
134 mouse->buf[mouse->count++] = byte;
135}
136
137static void vsxxxaa_detection_done(struct vsxxxaa *mouse)
138{
139 switch (mouse->type) {
140 case 0x02:
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Driver for DEC VSXXX-AA mouse (hockey-puck mouse, ball or two rollers)
4 * DEC VSXXX-GA mouse (rectangular mouse, with ball)
5 * DEC VSXXX-AB tablet (digitizer with hair cross or stylus)
6 *
7 * Copyright (C) 2003-2004 by Jan-Benedict Glaw <jbglaw@lug-owl.de>
8 *

--- 124 unchanged lines hidden (view full) ---

133
134 mouse->buf[mouse->count++] = byte;
135}
136
137static void vsxxxaa_detection_done(struct vsxxxaa *mouse)
138{
139 switch (mouse->type) {
140 case 0x02:
141 strlcpy(mouse->name, "DEC VSXXX-AA/-GA mouse",
141 strscpy(mouse->name, "DEC VSXXX-AA/-GA mouse",
142 sizeof(mouse->name));
143 break;
144
145 case 0x04:
142 sizeof(mouse->name));
143 break;
144
145 case 0x04:
146 strlcpy(mouse->name, "DEC VSXXX-AB digitizer",
146 strscpy(mouse->name, "DEC VSXXX-AB digitizer",
147 sizeof(mouse->name));
148 break;
149
150 default:
151 snprintf(mouse->name, sizeof(mouse->name),
152 "unknown DEC pointer device (type = 0x%02x)",
153 mouse->type);
154 break;

--- 384 unchanged lines hidden ---
147 sizeof(mouse->name));
148 break;
149
150 default:
151 snprintf(mouse->name, sizeof(mouse->name),
152 "unknown DEC pointer device (type = 0x%02x)",
153 mouse->type);
154 break;

--- 384 unchanged lines hidden ---