| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (c) 1999-2001 Vojtech Pavlik |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 10 | 11 | */ |
|---|
| 11 | 12 | |
|---|
| 12 | 13 | /* |
|---|
| 13 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 14 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 15 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 16 | | - * (at your option) any later version. |
|---|
| 17 | | - * |
|---|
| 18 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 19 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 20 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 21 | | - * GNU General Public License for more details. |
|---|
| 22 | | - * |
|---|
| 23 | | - * You should have received a copy of the GNU General Public License |
|---|
| 24 | | - * along with this program; if not, write to the Free Software |
|---|
| 25 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 26 | 14 | */ |
|---|
| 27 | 15 | |
|---|
| 28 | 16 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 259 | 247 | db9_saturn_write_sub(port, type, 3, powered, 0); |
|---|
| 260 | 248 | return data[0] = 0xe3; |
|---|
| 261 | 249 | } |
|---|
| 262 | | - /* else: fall through */ |
|---|
| 250 | + fallthrough; |
|---|
| 263 | 251 | default: |
|---|
| 264 | 252 | return data[0]; |
|---|
| 265 | 253 | } |
|---|
| .. | .. |
|---|
| 279 | 267 | switch (data[j]) { |
|---|
| 280 | 268 | case 0x16: /* multi controller (analog 4 axis) */ |
|---|
| 281 | 269 | input_report_abs(dev, db9_abs[5], data[j + 6]); |
|---|
| 282 | | - /* fall through */ |
|---|
| 270 | + fallthrough; |
|---|
| 283 | 271 | case 0x15: /* mission stick (analog 3 axis) */ |
|---|
| 284 | 272 | input_report_abs(dev, db9_abs[3], data[j + 4]); |
|---|
| 285 | 273 | input_report_abs(dev, db9_abs[4], data[j + 5]); |
|---|
| 286 | | - /* fall through */ |
|---|
| 274 | + fallthrough; |
|---|
| 287 | 275 | case 0x13: /* racing controller (analog 1 axis) */ |
|---|
| 288 | 276 | input_report_abs(dev, db9_abs[2], data[j + 3]); |
|---|
| 289 | | - /* fall through */ |
|---|
| 277 | + fallthrough; |
|---|
| 290 | 278 | case 0x34: /* saturn keyboard (udlr ZXC ASD QE Esc) */ |
|---|
| 291 | 279 | case 0x02: /* digital pad (digital 2 axis + buttons) */ |
|---|
| 292 | 280 | input_report_abs(dev, db9_abs[0], !(data[j + 1] & 128) - !(data[j + 1] & 64)); |
|---|
| .. | .. |
|---|
| 380 | 368 | input_report_abs(dev2, ABS_X, (data & DB9_RIGHT ? 0 : 1) - (data & DB9_LEFT ? 0 : 1)); |
|---|
| 381 | 369 | input_report_abs(dev2, ABS_Y, (data & DB9_DOWN ? 0 : 1) - (data & DB9_UP ? 0 : 1)); |
|---|
| 382 | 370 | input_report_key(dev2, BTN_TRIGGER, ~data & DB9_FIRE1); |
|---|
| 383 | | - /* fall through */ |
|---|
| 371 | + fallthrough; |
|---|
| 384 | 372 | |
|---|
| 385 | 373 | case DB9_MULTI_0802: |
|---|
| 386 | 374 | |
|---|