]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bus: fsl-mc: constify the struct device_type usage
authorRicardo B. Marliere <ricardo.marliere@suse.com>
Wed, 4 Sep 2024 14:17:23 +0000 (11:17 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jan 2025 14:25:01 +0000 (15:25 +0100)
commit896be785015c0e0ba73442f73b8d4d9f5ccfc54c
treeaae287cf03adc163d2f440c591371e7986908107
parentbf2aa7df2687a24ebb52cec4a24443121ac3126d
bus: fsl-mc: constify the struct device_type usage

Since commit aed65af1cc2f ("drivers: make device_type const"), the driver
core can properly handle constant struct device_type. Move all the
device_type variables used in the bus to be constant structures 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@suse.com>
Link: https://lore.kernel.org/r/20240904-class_cleanup-fsl-mc-bus-v2-1-83fa25cbdc68@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/bus/fsl-mc/fsl-mc-bus.c
include/linux/fsl/mc.h