Re: [PATCH] cdx: make cdx_bus_type constant

From: Gupta, Nipun
Date: Tue Jul 01 2025 - 10:32:00 EST




On 01-07-2025 16:44, Greg Kroah-Hartman wrote:
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@xxxxxxx>
Cc: Nikhil Agarwal <nikhil.agarwal@xxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

Acked-by: Nipun Gupta <nipun.gupta@xxxxxxx>