mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-16 02:14:58 +00:00
watchdog: Make watchdog_class const
Now that the driver core allows for struct class to be in read-only memory, mark watchdog_class as const. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20240614-class-const-wdt-v1-1-f9a4e2b1ba76@weissschuh.net Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
This commit is contained in:
parent
22a40d14b5
commit
d794a74101
@ -1004,7 +1004,7 @@ static struct miscdevice watchdog_miscdev = {
|
||||
.fops = &watchdog_fops,
|
||||
};
|
||||
|
||||
static struct class watchdog_class = {
|
||||
static const struct class watchdog_class = {
|
||||
.name = "watchdog",
|
||||
.dev_groups = wdt_groups,
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user