hsi: hsi_core: make hsi_bus_type const
authorRicardo B. Marliere <ricardo@marliere.net>
Sun, 4 Feb 2024 16:32:13 +0000 (13:32 -0300)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 6 Feb 2024 15:08:46 +0000 (16:08 +0100)
commita0e35a173a86d93040d0e08f9c38526b6cf6c1d1
treedb3cfc7bba38a39a7b3185406ff773fe79a665d2
parent6613476e225e090cc9aad49be7fa504e290dd33d
hsi: hsi_core: make hsi_bus_type const

Now that the driver core can properly handle constant struct bus_type,
move the hsi_bus_type variable to be a constant structure as well,
placing it into read-only memory which can not be modified at runtime.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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>
Link: https://lore.kernel.org/r/20240204-bus_cleanup-hsi-v1-1-f9318131e842@marliere.net
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/hsi/hsi_core.c