Skip to content

Commit d794a74

Browse files
t-8chWim Van Sebroeck
authored andcommitted
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 <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent 22a40d1 commit d794a74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/watchdog/watchdog_dev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ static struct miscdevice watchdog_miscdev = {
10041004
.fops = &watchdog_fops,
10051005
};
10061006

1007-
static struct class watchdog_class = {
1007+
static const struct class watchdog_class = {
10081008
.name = "watchdog",
10091009
.dev_groups = wdt_groups,
10101010
};

0 commit comments

Comments
 (0)