mei: bus: constify the struct mei_cl_bus_type usage
authorKunwu Chan <chentao@kylinos.cn>
Tue, 23 Apr 2024 02:41:33 +0000 (10:41 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Apr 2024 04:33:16 +0000 (21:33 -0700)
commite22810ab3f5e0de0151a5a0d05a54cfc39a780a8
treefa54d50b3df7e7c7ebea525192a982df7bb564c3
parent84e79a7f63e8caeac0c1a0817408860875a9b23e
mei: bus: constify the struct mei_cl_bus_type usage

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

Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
Acked-by: Tomas Winkler <tomas.winkler@intel.com>
Link: https://lore.kernel.org/r/20240423024133.1890455-1-chentao@kylinos.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/bus.c