hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/media/rc/ati_remote.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * USB ATI Remote support
34 *
....@@ -25,16 +26,6 @@
2526 * Seth Cohn <sethcohn@yahoo.com>
2627 *
2728 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
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.
3829 *
3930 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
4031 *
....@@ -79,7 +70,6 @@
7970 *
8071 * The default is 0 (respond to all channels). Bit 0 and bits 17-32 of this
8172 * parameter are unused.
82
- *
8373 */
8474
8575 #include <linux/kernel.h>
....@@ -304,7 +294,7 @@
304294 {KIND_LITERAL, 0x7c, BTN_RIGHT},/* right btn down */
305295 {KIND_LITERAL, 0x7d, BTN_RIGHT},/* right btn up */
306296
307
- /* Artificial "doubleclick" events are generated by the hardware.
297
+ /* Artificial "double-click" events are generated by the hardware.
308298 * They are mapped to the "side" and "extra" mouse buttons here. */
309299 {KIND_FILTERED, 0x7a, BTN_SIDE}, /* left dblclick */
310300 {KIND_FILTERED, 0x7e, BTN_EXTRA},/* right dblclick */
....@@ -866,7 +856,7 @@
866856 ati_remote->interface = interface;
867857
868858 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,
870860 sizeof(ati_remote->mouse_phys));
871861
872862 strlcat(ati_remote->rc_phys, "/input0", sizeof(ati_remote->rc_phys));