forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-20 ea08eeccae9297f7aabd2ef7f0c2517ac4549acc
kernel/drivers/nfc/trf7970a.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * TI TRF7970a RFID/NFC Transceiver Driver
34 *
....@@ -6,10 +7,6 @@
67 * Author: Erick Macias <emacias@ti.com>
78 * Author: Felipe Balbi <balbi@ti.com>
89 * Author: Mark A. Greer <mgreer@animalcreek.com>
9
- *
10
- * This program is free software: you can redistribute it and/or modify
11
- * it under the terms of the GNU General Public License version 2 of
12
- * the License as published by the Free Software Foundation.
1310 */
1411
1512 #include <linux/module.h>
....@@ -1156,7 +1153,7 @@
11561153 dev_err(trf->dev, "%s - Invalid request: %d %d\n",
11571154 __func__, trf->state, on);
11581155 ret = -EINVAL;
1159
- /* FALLTHROUGH */
1156
+ fallthrough;
11601157 case TRF7970A_ST_IDLE:
11611158 case TRF7970A_ST_IDLE_RX_BLOCKED:
11621159 case TRF7970A_ST_WAIT_FOR_RX_DATA:
....@@ -1385,7 +1382,6 @@
13851382 case ISO15693_CMD_WRITE_DSFID:
13861383 case ISO15693_CMD_LOCK_DSFID:
13871384 return 1;
1388
- break;
13891385 default:
13901386 return 0;
13911387 }
....@@ -1963,7 +1959,7 @@
19631959 case TRF7970A_ST_WAIT_TO_ISSUE_EOF:
19641960 case TRF7970A_ST_LISTENING:
19651961 trf7970a_send_err_upstream(trf, -ECANCELED);
1966
- /* FALLTHROUGH */
1962
+ fallthrough;
19671963 case TRF7970A_ST_IDLE:
19681964 case TRF7970A_ST_IDLE_RX_BLOCKED:
19691965 trf7970a_switch_rf_off(trf);