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: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20240614-class-const-hwmon-v1-1-27b910d06a90@weissschuh.net
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
Thomas Weißschuh 2024-06-14 01:01:42 +02:00 committed by Guenter Roeck
parent dc5abc2ff0
commit 52115fc329

View File

@ -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,