forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/acpi/evged.c
....@@ -1,16 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Generic Event Device for ACPI.
34 *
45 * Copyright (c) 2016, The Linux Foundation. All rights reserved.
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2 and
8
- * only version 2 as published by the Free Software Foundation.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
146 *
157 * Generic Event Device allows platforms to handle interrupts in ACPI
168 * ASL statements. It follows very similar to _EVT method approach
....@@ -37,7 +29,6 @@
3729 * }
3830 * }
3931 * }
40
- *
4132 */
4233
4334 #include <linux/err.h>
....@@ -115,7 +106,7 @@
115106
116107 if (ACPI_SUCCESS(acpi_get_handle(handle, ev_name, &evt_handle)))
117108 break;
118
- /* fall through */
109
+ fallthrough;
119110 default:
120111 if (ACPI_SUCCESS(acpi_get_handle(handle, "_EVT", &evt_handle)))
121112 break;