Skip to content

Commit 1902d15

Browse files
andy-shevrafaeljw
authored andcommitted
ACPI: platform: Sort forbidden_id_list[] in ascending order
For easier maintenance, sort the forbidden_id_list[] table rows in ascending order with respect to the device ID field. While at it, use an empty row as the list terminator, which is more usual in the kernel. Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 895a4d6 commit 1902d15

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/acpi/acpi_platform.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
#include "internal.h"
2121

2222
static const struct acpi_device_id forbidden_id_list[] = {
23+
{"ACPI0009", 0}, /* IOxAPIC */
24+
{"ACPI000A", 0}, /* IOAPIC */
2325
{"PNP0000", 0}, /* PIC */
2426
{"PNP0100", 0}, /* Timer */
2527
{"PNP0200", 0}, /* AT DMA Controller */
26-
{"ACPI0009", 0}, /* IOxAPIC */
27-
{"ACPI000A", 0}, /* IOAPIC */
2828
{"SMB0001", 0}, /* ACPI SMBUS virtual device */
29-
{"", 0},
29+
{ }
3030
};
3131

3232
static struct platform_device *acpi_platform_device_find_by_companion(struct acpi_device *adev)

0 commit comments

Comments
 (0)