hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/input/joystick/gamecon.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * NES, SNES, N64, MultiSystem, PSX gamepad driver for Linux
34 *
....@@ -11,19 +12,6 @@
1112 */
1213
1314 /*
14
- * This program is free software; you can redistribute it and/or modify
15
- * it under the terms of the GNU General Public License as published by
16
- * the Free Software Foundation; either version 2 of the License, or
17
- * (at your option) any later version.
18
- *
19
- * This program is distributed in the hope that it will be useful,
20
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
21
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
- * GNU General Public License for more details.
23
- *
24
- * You should have received a copy of the GNU General Public License
25
- * along with this program; if not, write to the Free Software
26
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2715 */
2816
2917 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
....@@ -497,7 +485,7 @@
497485 switch (pad->type) {
498486 case GC_MULTI2:
499487 input_report_key(dev, BTN_THUMB, s & data[5]);
500
- /* fall through */
488
+ fallthrough;
501489
502490 case GC_MULTI:
503491 input_report_abs(dev, ABS_X,
....@@ -650,7 +638,7 @@
650638
651639 input_report_key(dev, BTN_THUMBL, ~data[0] & 0x04);
652640 input_report_key(dev, BTN_THUMBR, ~data[0] & 0x02);
653
- /* fall through */
641
+ fallthrough;
654642
655643 case GC_PSX_NEGCON:
656644 case GC_PSX_ANALOG:
....@@ -884,7 +872,8 @@
884872 case GC_SNES:
885873 for (i = 4; i < 8; i++)
886874 input_set_capability(input_dev, EV_KEY, gc_snes_btn[i]);
887
- /* fall through */
875
+ fallthrough;
876
+
888877 case GC_NES:
889878 for (i = 0; i < 4; i++)
890879 input_set_capability(input_dev, EV_KEY, gc_snes_btn[i]);
....@@ -892,10 +881,10 @@
892881
893882 case GC_MULTI2:
894883 input_set_capability(input_dev, EV_KEY, BTN_THUMB);
895
- /* fall through */
884
+ fallthrough;
885
+
896886 case GC_MULTI:
897887 input_set_capability(input_dev, EV_KEY, BTN_TRIGGER);
898
- /* fall through */
899888 break;
900889
901890 case GC_PSX: