peci: Make peci_bus_type const
authorRicardo B. Marliere <ricardo@marliere.net>
Sat, 10 Feb 2024 15:10:14 +0000 (12:10 -0300)
committerIwona Winiarska <iwona.winiarska@intel.com>
Mon, 15 Apr 2024 22:14:36 +0000 (00:14 +0200)
commited8c2dad25eb2fbaa61f2e32385ecc1aa34c2355
tree33ad5891beca74f3cdc3b97497a0b5b1b9022026
parent0bbac3facb5d6cc0171c45c9873a2dc96bea9680
peci: Make peci_bus_type const

Now that the driver core can properly handle constant struct bus_type,
move the peci_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>
Link: https://lore.kernel.org/r/20240210-bus_cleanup-peci-v1-1-1e64bef6efc0@marliere.net
Signed-off-by: Iwona Winiarska <iwona.winiarska@intel.com>
drivers/peci/core.c
drivers/peci/internal.h