hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/acpi/spcr.c
....@@ -1,12 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2012, Intel Corporation
34 * Copyright (c) 2015, Red Hat, Inc.
45 * Copyright (c) 2015, 2016 Linaro Ltd.
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 as
8
- * published by the Free Software Foundation.
9
- *
106 */
117
128 #define pr_fmt(fmt) "ACPI: SPCR: " fmt
....@@ -28,7 +24,7 @@
2824
2925 /*
3026 * Some Qualcomm Datacenter Technologies SoCs have a defective UART BUSY bit.
31
- * Detect them by examining the OEM fields in the SPCR header, similiar to PCI
27
+ * Detect them by examining the OEM fields in the SPCR header, similar to PCI
3228 * quirk detection in pci_mcfg.c.
3329 */
3430 static bool qdf2400_erratum_44_present(struct acpi_table_header *h)
....@@ -115,7 +111,7 @@
115111 table->serial_port.access_width))) {
116112 default:
117113 pr_err("Unexpected SPCR Access Width. Defaulting to byte size\n");
118
- /* fall through */
114
+ fallthrough;
119115 case 8:
120116 iotype = "mmio";
121117 break;
....@@ -132,7 +128,7 @@
132128 switch (table->interface_type) {
133129 case ACPI_DBG2_ARM_SBSA_32BIT:
134130 iotype = "mmio32";
135
- /* fall through */
131
+ fallthrough;
136132 case ACPI_DBG2_ARM_PL011:
137133 case ACPI_DBG2_ARM_SBSA_GENERIC:
138134 case ACPI_DBG2_BCM2835: