diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2024-06-14 00:57:22 +0200 |
---|---|---|
committer | Wim Van Sebroeck <wim@linux-watchdog.org> | 2024-07-10 20:01:30 +0200 |
commit | d794a7410177f05b05232fc8cac46db196eafb00 (patch) | |
tree | 53ff83efe767f4621b5d03371f1645d3b044a05d /drivers/watchdog | |
parent | Linux 6.10-rc6 (diff) | |
download | linux-d794a7410177f05b05232fc8cac46db196eafb00.tar.xz linux-d794a7410177f05b05232fc8cac46db196eafb00.zip |
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, }; |