.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * USB ATI Remote support |
---|
3 | 4 | * |
---|
.. | .. |
---|
25 | 26 | * Seth Cohn <sethcohn@yahoo.com> |
---|
26 | 27 | * |
---|
27 | 28 | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
---|
28 | | - * |
---|
29 | | - * This program is free software; you can redistribute it and/or modify |
---|
30 | | - * it under the terms of the GNU General Public License as published by |
---|
31 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
32 | | - * (at your option) any later version. |
---|
33 | | - * |
---|
34 | | - * This program is distributed in the hope that it will be useful, |
---|
35 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
36 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
37 | | - * GNU General Public License for more details. |
---|
38 | 29 | * |
---|
39 | 30 | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
---|
40 | 31 | * |
---|
.. | .. |
---|
79 | 70 | * |
---|
80 | 71 | * The default is 0 (respond to all channels). Bit 0 and bits 17-32 of this |
---|
81 | 72 | * parameter are unused. |
---|
82 | | - * |
---|
83 | 73 | */ |
---|
84 | 74 | |
---|
85 | 75 | #include <linux/kernel.h> |
---|
.. | .. |
---|
304 | 294 | {KIND_LITERAL, 0x7c, BTN_RIGHT},/* right btn down */ |
---|
305 | 295 | {KIND_LITERAL, 0x7d, BTN_RIGHT},/* right btn up */ |
---|
306 | 296 | |
---|
307 | | - /* Artificial "doubleclick" events are generated by the hardware. |
---|
| 297 | + /* Artificial "double-click" events are generated by the hardware. |
---|
308 | 298 | * They are mapped to the "side" and "extra" mouse buttons here. */ |
---|
309 | 299 | {KIND_FILTERED, 0x7a, BTN_SIDE}, /* left dblclick */ |
---|
310 | 300 | {KIND_FILTERED, 0x7e, BTN_EXTRA},/* right dblclick */ |
---|
.. | .. |
---|
866 | 856 | ati_remote->interface = interface; |
---|
867 | 857 | |
---|
868 | 858 | usb_make_path(udev, ati_remote->rc_phys, sizeof(ati_remote->rc_phys)); |
---|
869 | | - strlcpy(ati_remote->mouse_phys, ati_remote->rc_phys, |
---|
| 859 | + strscpy(ati_remote->mouse_phys, ati_remote->rc_phys, |
---|
870 | 860 | sizeof(ati_remote->mouse_phys)); |
---|
871 | 861 | |
---|
872 | 862 | strlcat(ati_remote->rc_phys, "/input0", sizeof(ati_remote->rc_phys)); |
---|