mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 13:03:25 +01:00
mfd: core: Constify the struct device_type usage
Since commit aed65af1cc
("drivers: make device_type const"), the driver
core can properly handle constant struct device_type. Move the mfd_dev_type
variable to be a constant structure as well, placing it into read-only
memory which can not be modified at runtime.
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Link: https://lore.kernel.org/r/20240219-device_cleanup-mfd-v1-1-e4eef5ed2da8@marliere.net
Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
parent
bda40bf667
commit
3cb1085400
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ struct mfd_of_node_entry {
|
|||
struct device_node *np;
|
||||
};
|
||||
|
||||
static struct device_type mfd_dev_type = {
|
||||
static const struct device_type mfd_dev_type = {
|
||||
.name = "mfd_device",
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue