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

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.net


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent dc5abc2f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,