aboutsummaryrefslogtreecommitdiff
path: root/include/acpi
diff options
context:
space:
mode:
authorGravatar Ricardo B. Marliere <ricardo@marliere.net> 2024-02-11 12:37:11 -0300
committerGravatar Rafael J. Wysocki <rafael.j.wysocki@intel.com> 2024-02-12 14:42:48 +0100
commit592190b598c3a9fdf98c5fc649e5f6da6e8e7941 (patch)
tree00221cc03c5ac7d558988c42721b3448dd475817 /include/acpi
parentLinux 6.8-rc4 (diff)
downloadlinux-592190b598c3a9fdf98c5fc649e5f6da6e8e7941.tar.gz
linux-592190b598c3a9fdf98c5fc649e5f6da6e8e7941.tar.bz2
linux-592190b598c3a9fdf98c5fc649e5f6da6e8e7941.zip
ACPI: bus: make acpi_bus_type const
Now that the driver core can properly handle constant struct bus_type, move the acpi_bus_type variable to be a constant structure as well, placing it into read-only memory which can not be modified at runtime. Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi')
-rw-r--r--include/acpi/acpi_bus.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index e4d24d3f9abb..f67aa93ba53e 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -582,7 +582,7 @@ void acpi_initialize_hp_context(struct acpi_device *adev,
void (*uevent)(struct acpi_device *, u32));
/* acpi_device.dev.bus == &acpi_bus_type */
-extern struct bus_type acpi_bus_type;
+extern const struct bus_type acpi_bus_type;
int acpi_bus_for_each_dev(int (*fn)(struct device *, void *), void *data);
int acpi_dev_for_each_child(struct acpi_device *adev,