hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/input/joystick/spaceball.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (c) 1999-2001 Vojtech Pavlik
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 #include <linux/kernel.h>
....@@ -165,7 +153,7 @@
165153 break;
166154 }
167155 spaceball->escape = 0;
168
- /* fall through */
156
+ fallthrough;
169157 case 'M':
170158 case 'Q':
171159 case 'S':
....@@ -173,7 +161,7 @@
173161 spaceball->escape = 0;
174162 data &= 0x1f;
175163 }
176
- /* fall through */
164
+ fallthrough;
177165 default:
178166 if (spaceball->escape)
179167 spaceball->escape = 0;
....@@ -239,13 +227,13 @@
239227 input_dev->keybit[BIT_WORD(BTN_A)] |= BIT_MASK(BTN_A) |
240228 BIT_MASK(BTN_B) | BIT_MASK(BTN_C) |
241229 BIT_MASK(BTN_MODE);
242
- /* fall through */
230
+ fallthrough;
243231 default:
244232 input_dev->keybit[BIT_WORD(BTN_0)] |= BIT_MASK(BTN_2) |
245233 BIT_MASK(BTN_3) | BIT_MASK(BTN_4) |
246234 BIT_MASK(BTN_5) | BIT_MASK(BTN_6) |
247235 BIT_MASK(BTN_7) | BIT_MASK(BTN_8);
248
- /* fall through */
236
+ fallthrough;
249237 case SPACEBALL_3003C:
250238 input_dev->keybit[BIT_WORD(BTN_0)] |= BIT_MASK(BTN_1) |
251239 BIT_MASK(BTN_8);