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 <bartosz.golaszewski@linaro.org> Acked-by: Rafael J. Wysocki <rafael@kernel.org> Acked-by: Saravana Kannan <saravanak@google.com> Link: https://lore.kernel.org/r/20241014122849.118766-1-brgl@bgdev.pl Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent eafb1a8 commit 6b8ab72

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)