summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorVicki Pfau <vi@endrift.com>2023-02-21 19:38:03 -0800
committerCristian Ciocaltea <cristian.ciocaltea@collabora.com>2023-09-11 23:46:39 +0300
commit79c8690d0153a6ef2eea461a92c903efd22b6786 (patch)
tree452b968f9aa1f17d000eea921e04c2a24267709a /include
parent87e2a7e2c8b2f120b56ec46a263d7cd6ca6a252e (diff)
downloadlinux-79c8690d0153a6ef2eea461a92c903efd22b6786.tar.gz
ACPI: utils: Make acpi_handle_list dynamically allocated
This fixes a long-standing "TBD" comment in the ACPI headers regarding making
the acpi_handle_list struct's size dynamic. The number 10, which along with the
comment dates back to 2.4.23, seems like it may have been arbitrarily chosen,
and isn't sufficient in all cases. This patch finally makes the size dynamic
and updates its users to handle the modified API.

Signed-off-by: Vicki Pfau <vi@endrift.com>
(cherry picked from commit e4efc98ccb538204b344c64a419a601e3f50e79e)
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Diffstat (limited to 'include')
-rw-r--r--include/acpi/acpi_bus.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index c09d72986968..647f41abc324 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -12,11 +12,9 @@
 #include <linux/device.h>
 #include <linux/property.h>
 
-/* TBD: Make dynamic */
-#define ACPI_MAX_HANDLES	10
 struct acpi_handle_list {
 	u32 count;
-	acpi_handle handles[ACPI_MAX_HANDLES];
+	acpi_handle* handles;
 };
 
 /* acpi_utils.h */