mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
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>
This commit is contained in:
parent
4231694133
commit
bd86030943
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue