]> git.ipfire.org Git - thirdparty/linux.git/commit
cdx: make cdx_bus_type constant
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 14 Sep 2025 13:42:40 +0000 (15:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Oct 2025 05:54:33 +0000 (07:54 +0200)
commit9fd2eb9e18a0a0b5a127937586388ed0181d9dac
treedd3c1f67271b918a5739646b80b00e24fd53e515
parent69cddd82ef78bbd5a92d11f725ab22a84b561a10
cdx: make cdx_bus_type constant

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

Cc: Nipun Gupta <nipun.gupta@amd.com>
Cc: Nikhil Agarwal <nikhil.agarwal@amd.com>
Acked-by: Nipun Gupta <nipun.gupta@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://patch.msgid.link/2025091439-sustained-acorn-4af4@gregkh
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/cdx/cdx.c
include/linux/cdx/cdx_bus.h