summaryrefslogtreecommitdiffstats
path: root/drivers/misc/tifm_core.c
diff options
context:
space:
mode:
authorKunwu Chan <chentao@kylinos.cn>2024-04-23 04:38:10 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-05-04 18:59:58 +0200
commitbd86030943bf57ca230b486090067b58da49b837 (patch)
tree2fd2c8fec4f2d142c61b1816c6fe9dc9a0f3b11d /drivers/misc/tifm_core.c
parentbinder: fix max_thread type inconsistency (diff)
downloadlinux-bd86030943bf57ca230b486090067b58da49b837.tar.xz
linux-bd86030943bf57ca230b486090067b58da49b837.zip
tifm: constify the struct tifm_bus_type usage
Now that the driver core can properly handle constant struct bus_type, move the tifm_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> Link: https://lore.kernel.org/r/20240423023810.1889264-1-chentao@kylinos.cn Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/tifm_core.c')
-rw-r--r--drivers/misc/tifm_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/tifm_core.c b/drivers/misc/tifm_core.c
index d2eb31f39aa7..fd9c3cbbc51e 100644
--- a/drivers/misc/tifm_core.c
+++ b/drivers/misc/tifm_core.c
@@ -148,7 +148,7 @@ static struct attribute *tifm_dev_attrs[] = {
};
ATTRIBUTE_GROUPS(tifm_dev);
-static struct bus_type tifm_bus_type = {
+static const struct bus_type tifm_bus_type = {
.name = "tifm",
.dev_groups = tifm_dev_groups,
.match = tifm_bus_match,