Skip to content

Commit d3e5e97

Browse files
committed
Merge tag 'acpi-5.7-rc1-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull more ACPI updates from Rafael Wysocki: "These prevent a false-positive static checker warning from triggering in the ACPI EC driver (Rafael Wysocki), fix white space in an ACPI document (Vilhelm Prytz) and add static annotation to one variable (Jason Yan)" * tag 'acpi-5.7-rc1-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: ACPI, x86/boot: make acpi_nobgrt static Documentation: firmware-guide: ACPI: fix table alignment in namespace.rst ACPI: EC: Fix up fast path check in acpi_ec_add()
2 parents bbec2a2 + 0214da7 commit d3e5e97

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Documentation/firmware-guide/acpi/namespace.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ are illustrated in the following diagram::
5656
+- - - -+ | +-------------------| |
5757
| Entry | - - - - - - - -+ | | Definition Blocks | |
5858
+- - - -+ | | +-------------------+ |
59-
| | +- - - - - - - - - -+ |
60-
+-|->| SSDT | |
59+
| | +- - - - - - - - - -+ |
60+
+-|->| SSDT | |
6161
| +-------------------+ |
6262
| | Definition Blocks | |
6363
| +- - - - - - - - - -+ |
6464
+------------------------+
65-
|
65+
|
6666
OSPM Loading |
6767
\|/
6868
+----------------+

arch/x86/kernel/acpi/boot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ EXPORT_SYMBOL(acpi_disabled);
4545
#define PREFIX "ACPI: "
4646

4747
int acpi_noirq; /* skip ACPI IRQ initialization */
48-
int acpi_nobgrt; /* skip ACPI BGRT */
48+
static int acpi_nobgrt; /* skip ACPI BGRT */
4949
int acpi_pci_disabled; /* skip ACPI PCI scan and IRQ initialization */
5050
EXPORT_SYMBOL(acpi_pci_disabled);
5151

drivers/acpi/ec.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1589,8 +1589,8 @@ static int acpi_ec_add(struct acpi_device *device)
15891589
strcpy(acpi_device_name(device), ACPI_EC_DEVICE_NAME);
15901590
strcpy(acpi_device_class(device), ACPI_EC_CLASS);
15911591

1592-
if ((boot_ec && boot_ec->handle == device->handle) ||
1593-
!strcmp(acpi_device_hid(device), ACPI_ECDT_HID)) {
1592+
if (boot_ec && (boot_ec->handle == device->handle ||
1593+
!strcmp(acpi_device_hid(device), ACPI_ECDT_HID))) {
15941594
/* Fast path: this device corresponds to the boot EC. */
15951595
ec = boot_ec;
15961596
} else {

0 commit comments

Comments
 (0)