[PATCH v2 0/2] PCI: Manage hotplug attributes through group and make slot attributes const

Thomas Weißschuh posted 2 patches 5 days, 6 hours ago
drivers/pci/hotplug/pci_hotplug_core.c | 125 +++++++++++++--------------------
drivers/pci/pci.h                      |   2 +-
drivers/pci/slot.c                     |  14 ++--
3 files changed, 57 insertions(+), 84 deletions(-)
[PATCH v2 0/2] PCI: Manage hotplug attributes through group and make slot attributes const
Posted by Thomas Weißschuh 5 days, 6 hours ago
Simplify the lifecycle management of the PCI hotplug attributes with a
'struct attribute_group' and constify instances of
'struct pci_slot_attribute'.

'struct pci_slot_attribute zpci_slot_attr_uid' is not constified yet,
as it will be constified together with the rest of the zpci subsystem.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
Changes in v2:
- Add a cover letter.
- Add a note about zpci_slot_attr_uid.
- Link to v1: https://patch.msgid.link/20260514-sysfs-const-pci-hotplug-v1-0-3b0b6c6f7481@weissschuh.net

---
Thomas Weißschuh (2):
      PCI: hotplug: Manage hotplug slot attributes as group
      PCI: Constify slot attributes

 drivers/pci/hotplug/pci_hotplug_core.c | 125 +++++++++++++--------------------
 drivers/pci/pci.h                      |   2 +-
 drivers/pci/slot.c                     |  14 ++--
 3 files changed, 57 insertions(+), 84 deletions(-)
---
base-commit: 254f49634ee16a731174d2ae34bc50bd5f45e731
change-id: 20260513-sysfs-const-pci-hotplug-48b62047984e

Best regards,
--  
Thomas Weißschuh <linux@weissschuh.net>