.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * NES, SNES, N64, MultiSystem, PSX gamepad driver for Linux |
---|
3 | 4 | * |
---|
.. | .. |
---|
11 | 12 | */ |
---|
12 | 13 | |
---|
13 | 14 | /* |
---|
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 |
---|
27 | 15 | */ |
---|
28 | 16 | |
---|
29 | 17 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
---|
.. | .. |
---|
497 | 485 | switch (pad->type) { |
---|
498 | 486 | case GC_MULTI2: |
---|
499 | 487 | input_report_key(dev, BTN_THUMB, s & data[5]); |
---|
500 | | - /* fall through */ |
---|
| 488 | + fallthrough; |
---|
501 | 489 | |
---|
502 | 490 | case GC_MULTI: |
---|
503 | 491 | input_report_abs(dev, ABS_X, |
---|
.. | .. |
---|
650 | 638 | |
---|
651 | 639 | input_report_key(dev, BTN_THUMBL, ~data[0] & 0x04); |
---|
652 | 640 | input_report_key(dev, BTN_THUMBR, ~data[0] & 0x02); |
---|
653 | | - /* fall through */ |
---|
| 641 | + fallthrough; |
---|
654 | 642 | |
---|
655 | 643 | case GC_PSX_NEGCON: |
---|
656 | 644 | case GC_PSX_ANALOG: |
---|
.. | .. |
---|
884 | 872 | case GC_SNES: |
---|
885 | 873 | for (i = 4; i < 8; i++) |
---|
886 | 874 | input_set_capability(input_dev, EV_KEY, gc_snes_btn[i]); |
---|
887 | | - /* fall through */ |
---|
| 875 | + fallthrough; |
---|
| 876 | + |
---|
888 | 877 | case GC_NES: |
---|
889 | 878 | for (i = 0; i < 4; i++) |
---|
890 | 879 | input_set_capability(input_dev, EV_KEY, gc_snes_btn[i]); |
---|
.. | .. |
---|
892 | 881 | |
---|
893 | 882 | case GC_MULTI2: |
---|
894 | 883 | input_set_capability(input_dev, EV_KEY, BTN_THUMB); |
---|
895 | | - /* fall through */ |
---|
| 884 | + fallthrough; |
---|
| 885 | + |
---|
896 | 886 | case GC_MULTI: |
---|
897 | 887 | input_set_capability(input_dev, EV_KEY, BTN_TRIGGER); |
---|
898 | | - /* fall through */ |
---|
899 | 888 | break; |
---|
900 | 889 | |
---|
901 | 890 | case GC_PSX: |
---|