summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorKunwu Chan <chentao@kylinos.cn>2024-04-23 04:41:33 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-04-24 06:33:16 +0200
commite22810ab3f5e0de0151a5a0d05a54cfc39a780a8 (patch)
treefa54d50b3df7e7c7ebea525192a982df7bb564c3 /drivers/misc
parentMerge tag 'peci-next-6.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/g... (diff)
downloadlinux-e22810ab3f5e0de0151a5a0d05a54cfc39a780a8.tar.xz
linux-e22810ab3f5e0de0151a5a0d05a54cfc39a780a8.zip
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>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/mei/bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/mei/bus.c b/drivers/misc/mei/bus.c
index f9bcff197615..99393f610cdf 100644
--- a/drivers/misc/mei/bus.c
+++ b/drivers/misc/mei/bus.c
@@ -1327,7 +1327,7 @@ static int mei_cl_device_uevent(const struct device *dev, struct kobj_uevent_env
return 0;
}
-static struct bus_type mei_cl_bus_type = {
+static const struct bus_type mei_cl_bus_type = {
.name = "mei",
.dev_groups = mei_cldev_groups,
.match = mei_cl_device_match,