hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/drivers/input/mouse/sermouse.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (c) 1999-2001 Vojtech Pavlik
34 */
....@@ -7,19 +8,6 @@
78 */
89
910 /*
10
- * This program is free software; you can redistribute it and/or modify
11
- * it under the terms of the GNU General Public License as published by
12
- * the Free Software Foundation; either version 2 of the License, or
13
- * (at your option) any later version.
14
- *
15
- * This program is distributed in the hope that it will be useful,
16
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
- * GNU General Public License for more details.
19
- *
20
- * You should have received a copy of the GNU General Public License
21
- * along with this program; if not, write to the Free Software
22
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2311 */
2412
2513 #include <linux/delay.h>
....@@ -140,7 +128,7 @@
140128
141129 case SERIO_MS:
142130 sermouse->type = SERIO_MP;
143
- /* fall through */
131
+ fallthrough;
144132
145133 case SERIO_MP:
146134 if ((data >> 2) & 3) break; /* M++ Wireless Extension packet. */
....@@ -151,7 +139,7 @@
151139 case SERIO_MZP:
152140 case SERIO_MZPP:
153141 input_report_key(dev, BTN_SIDE, (data >> 5) & 1);
154
- /* fall through */
142
+ fallthrough;
155143
156144 case SERIO_MZ:
157145 input_report_key(dev, BTN_MIDDLE, (data >> 4) & 1);