| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Generic Event Device for ACPI. |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * 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. |
|---|
| 14 | 6 | * |
|---|
| 15 | 7 | * Generic Event Device allows platforms to handle interrupts in ACPI |
|---|
| 16 | 8 | * ASL statements. It follows very similar to _EVT method approach |
|---|
| .. | .. |
|---|
| 37 | 29 | * } |
|---|
| 38 | 30 | * } |
|---|
| 39 | 31 | * } |
|---|
| 40 | | - * |
|---|
| 41 | 32 | */ |
|---|
| 42 | 33 | |
|---|
| 43 | 34 | #include <linux/err.h> |
|---|
| .. | .. |
|---|
| 115 | 106 | |
|---|
| 116 | 107 | if (ACPI_SUCCESS(acpi_get_handle(handle, ev_name, &evt_handle))) |
|---|
| 117 | 108 | break; |
|---|
| 118 | | - /* fall through */ |
|---|
| 109 | + fallthrough; |
|---|
| 119 | 110 | default: |
|---|
| 120 | 111 | if (ACPI_SUCCESS(acpi_get_handle(handle, "_EVT", &evt_handle))) |
|---|
| 121 | 112 | break; |
|---|