Skip to content
Commit 10473777 authored by Thomas Weißschuh's avatar Thomas Weißschuh Committed by Bjorn Helgaas
Browse files

PCI/sysfs: Constify struct kobj_type pci_slot_ktype

Since commit ee6d3dd4 ("driver core: make kobj_type constant.") the
driver core allows the usage of const struct kobj_type.

Take advantage of this to constify the structure definition to prevent
modification at runtime.

Link: https://lore.kernel.org/r/20230216-kobj_type-pci-v1-1-46a63c8612b5@weissschuh.net


Signed-off-by: default avatarThomas Weißschuh <linux@weissschuh.net>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent fd858402
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment