]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ACPI: bus: make acpi_bus_type const
authorRicardo B. Marliere <ricardo@marliere.net>
Sun, 11 Feb 2024 15:37:11 +0000 (12:37 -0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 12 Feb 2024 13:42:48 +0000 (14:42 +0100)
commit592190b598c3a9fdf98c5fc649e5f6da6e8e7941
tree00221cc03c5ac7d558988c42721b3448dd475817
parent841c35169323cd833294798e58b9bf63fa4fa1de
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>
drivers/acpi/bus.c
include/acpi/acpi_bus.h