| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (c) 1999-2001 Vojtech Pavlik |
|---|
| 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 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 165 | 153 | break; |
|---|
| 166 | 154 | } |
|---|
| 167 | 155 | spaceball->escape = 0; |
|---|
| 168 | | - /* fall through */ |
|---|
| 156 | + fallthrough; |
|---|
| 169 | 157 | case 'M': |
|---|
| 170 | 158 | case 'Q': |
|---|
| 171 | 159 | case 'S': |
|---|
| .. | .. |
|---|
| 173 | 161 | spaceball->escape = 0; |
|---|
| 174 | 162 | data &= 0x1f; |
|---|
| 175 | 163 | } |
|---|
| 176 | | - /* fall through */ |
|---|
| 164 | + fallthrough; |
|---|
| 177 | 165 | default: |
|---|
| 178 | 166 | if (spaceball->escape) |
|---|
| 179 | 167 | spaceball->escape = 0; |
|---|
| .. | .. |
|---|
| 239 | 227 | input_dev->keybit[BIT_WORD(BTN_A)] |= BIT_MASK(BTN_A) | |
|---|
| 240 | 228 | BIT_MASK(BTN_B) | BIT_MASK(BTN_C) | |
|---|
| 241 | 229 | BIT_MASK(BTN_MODE); |
|---|
| 242 | | - /* fall through */ |
|---|
| 230 | + fallthrough; |
|---|
| 243 | 231 | default: |
|---|
| 244 | 232 | input_dev->keybit[BIT_WORD(BTN_0)] |= BIT_MASK(BTN_2) | |
|---|
| 245 | 233 | BIT_MASK(BTN_3) | BIT_MASK(BTN_4) | |
|---|
| 246 | 234 | BIT_MASK(BTN_5) | BIT_MASK(BTN_6) | |
|---|
| 247 | 235 | BIT_MASK(BTN_7) | BIT_MASK(BTN_8); |
|---|
| 248 | | - /* fall through */ |
|---|
| 236 | + fallthrough; |
|---|
| 249 | 237 | case SPACEBALL_3003C: |
|---|
| 250 | 238 | input_dev->keybit[BIT_WORD(BTN_0)] |= BIT_MASK(BTN_1) | |
|---|
| 251 | 239 | BIT_MASK(BTN_8); |
|---|