Commit 52115fc3 authored by Thomas Weißschuh's avatar Thomas Weißschuh Committed by Guenter Roeck

hwmon: (core) Make hwmon_class const

Now that the driver core allows for struct class to be in read-only
memory, mark hwmon_class as const.
Signed-off-by: default avatarThomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20240614-class-const-hwmon-v1-1-27b910d06a90@weissschuh.netSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent dc5abc2f
......@@ -137,7 +137,7 @@ static void hwmon_dev_release(struct device *dev)
kfree(hwdev);
}
static struct class hwmon_class = {
static const struct class hwmon_class = {
.name = "hwmon",
.dev_groups = hwmon_dev_attr_groups,
.dev_release = hwmon_dev_release,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment