Skip to content

of: Constify DT structs

Rob Herring (Arm) linux-devicetree linux-pci lkml 1 version In review

Get series with b4
b4 am [email protected] change-id 20241010-dt-const-7ceef73df29c

Versions newest first

  1. v1 Latest7 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7PCI: Constify pci_register_io_range() fwnode_handledrivers/pci/pci.c include/linux/pci.h+2 -22 replies
2/7logic_pio: Constify fwnode_handleinclude/linux/logic_pio.h lib/logic_pio.c+5 -52 replies
3/7of: Constify struct device_node function argumentsdrivers/of/address.c drivers/of/base.c drivers/of/cpu.c +7 more+33 -331 reply
4/7of: Constify struct property pointersdrivers/of/base.c drivers/of/kobj.c drivers/of/of_private.h +4 more+33 -321 reply
5/7of: Constify of_changeset_entry function argumentsdrivers/of/dynamic.c+2 -21 reply
6/7of: Constify safe_name() kobject argdrivers/of/kobj.c+1 -11 reply
7/7of/address: Constify of_busses[] array and pointersdrivers/of/address.c include/linux/of_address.h+7 -70 replies

Reviews trailers per patch

5 of 7 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchBjorn HelgaasKrzysztof Kozlowski
SeriesR-b
1/7A-b
2/7
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] of: Constify DT structs

This series constifies many usages of DT structs in the DT core code. Many uses of struct device_node where the node refcount is not changed can be const. Most uses of struct property can also be const.

The first 2 patches are dependencies. The functions called by the DT core where the fwnode_handle needs to be const to make the containing device_node const.

---
Rob Herring (Arm) (7):
PCI: Constify pci_register_io_range() fwnode_handle
logic_pio: Constify fwnode_handle
of: Constify struct device_node function arguments
of: Constify struct property pointers
of: Constify of_changeset_entry function arguments
of: Constify safe_name() kobject arg of/address: Constify of_busses[] array and pointers

 drivers/of/address.c       | 22 +++++++++++-----------
 drivers/of/base.c          | 20 ++++++++++----------
 drivers/of/cpu.c           |  2 +-
 drivers/of/dynamic.c       |  4 ++--
 drivers/of/irq.c           |  4 ++--
 drivers/of/kobj.c          |  8 ++++----
 drivers/of/of_private.h    | 12 ++++++------
 drivers/of/overlay.c       | 19 ++++++++++---------
 drivers/of/property.c      | 10 +++++-----
 drivers/of/resolver.c      | 12 ++++++------
 drivers/pci/pci.c          |  2 +-
 include/linux/logic_pio.h  |  6 +++---
 include/linux/of.h         | 28 ++++++++++++++--------------
 include/linux/of_address.h |  6 +++---
 include/linux/of_irq.h     |  4 ++--
 include/linux/pci.h        |  2 +-
 lib/logic_pio.c            |  4 ++--
 17 files changed, 83 insertions(+), 82 deletions(-)

---
base-commit: 9852d85ec9d492ebef56dc5f229416c925758edc
change-id: 20241010-dt-const-7ceef73df29c

Best regards,

Signature · 1 line
Rob Herring (Arm) <[email protected]>