Skip to content

Commit 6b8ab72

Browse files
Bartosz Golaszewskigregkh
authored andcommitted
driver core: constify devlink class
The devlink class object is never modified and can be made constant. Signed-off-by: Bartosz Golaszewski <[email protected]> Acked-by: Rafael J. Wysocki <[email protected]> Acked-by: Saravana Kannan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent eafb1a8 commit 6b8ab72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/base/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ void device_link_wait_removal(void)
553553
}
554554
EXPORT_SYMBOL_GPL(device_link_wait_removal);
555555

556-
static struct class devlink_class = {
556+
static const struct class devlink_class = {
557557
.name = "devlink",
558558
.dev_groups = devlink_groups,
559559
.dev_release = devlink_dev_release,

0 commit comments

Comments
 (0)