Skip to content

Commit a6c7e01

Browse files
committed
moxtet: mark moxtet_bus_type as const
Now that the driver core can properly handle constant struct bus_type, move the moxtet_bus_type to be a constant structure as well, placing it into read-only memory which can not be modified at runtime. Cc: Marek Behún <[email protected]> Link: https://lore.kernel.org/r/2023121939-written-guru-db83@gregkh Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent a87e55b commit a6c7e01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/bus/moxtet.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ static int moxtet_match(struct device *dev, struct device_driver *drv)
102102
return 0;
103103
}
104104

105-
static struct bus_type moxtet_bus_type = {
105+
static const struct bus_type moxtet_bus_type = {
106106
.name = "moxtet",
107107
.dev_groups = moxtet_dev_groups,
108108
.match = moxtet_match,

0 commit comments

Comments
 (0)