mfd: mcp-core: Make mcp_bus_type const
authorRicardo B. Marliere <ricardo@marliere.net>
Sun, 4 Feb 2024 20:10:32 +0000 (17:10 -0300)
committerLee Jones <lee@kernel.org>
Fri, 23 Feb 2024 14:58:03 +0000 (14:58 +0000)
commit6abc896ccbdd8cd4353adc1a27a469753e78ce0d
tree7994335b31bbd7b7f6c37b4091bee73667e365eb
parentc28c45608ef35bea99a959c1643fad32e2cc4044
mfd: mcp-core: Make mcp_bus_type const

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

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-mfd-v1-1-07335ebc034f@marliere.net
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/mcp-core.c