projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cece76
)
PCI: Constify pcibus_class
author
Heiner Kallweit
<hkallweit1@gmail.com>
Sat, 13 Apr 2024 21:01:17 +0000
(23:01 +0200)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Wed, 17 Apr 2024 15:44:17 +0000
(10:44 -0500)
Constify pcibus_class. All users take a const struct class * argument.
Link:
https://lore.kernel.org/r/5e01f46f-266f-4fb3-be8a-8cb9e566cd75@gmail.com
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/probe.c
patch
|
blob
|
history
diff --git
a/drivers/pci/probe.c
b/drivers/pci/probe.c
index 1325fbae2f28fb10dbbbd6c6ff65ce2cf9193f3d..4ec903291f36102e53cbb2d7c55255d931813903 100644
(file)
--- a/
drivers/pci/probe.c
+++ b/
drivers/pci/probe.c
@@
-95,7
+95,7
@@
static void release_pcibus_dev(struct device *dev)
kfree(pci_bus);
}
-static struct class pcibus_class = {
+static
const
struct class pcibus_class = {
.name = "pci_bus",
.dev_release = &release_pcibus_dev,
.dev_groups = pcibus_groups,