diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2024-06-14 01:57:22 +0300 |
---|---|---|
committer | Wim Van Sebroeck <wim@linux-watchdog.org> | 2024-07-10 21:01:30 +0300 |
commit | d794a7410177f05b05232fc8cac46db196eafb00 (patch) | |
tree | 53ff83efe767f4621b5d03371f1645d3b044a05d /drivers/watchdog | |
parent | 22a40d14b572deb80c0648557f4bd502d7e83826 (diff) | |
download | linux-d794a7410177f05b05232fc8cac46db196eafb00.tar.xz |
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>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r-- | drivers/watchdog/watchdog_dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/watchdog_dev.c b/drivers/watchdog/watchdog_dev.c index e2bd266b1b5b..4190cb800cc4 100644 --- a/drivers/watchdog/watchdog_dev.c +++ b/drivers/watchdog/watchdog_dev.c @@ -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, }; |