]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
PCI: of_property: Constify parameter in of_pci_get_addr_flags()
authorHerve Codina <herve.codina@bootlin.com>
Mon, 24 Feb 2025 14:13:54 +0000 (15:13 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 28 Feb 2025 21:13:07 +0000 (15:13 -0600)
commit3dc8adeeefa0256917d1e3978c8b4a06346816ed
tree791f9228b9926ec3cfa84464968385ba50058323
parentc5785a165f847c457bd398f496f7c108527b22bd
PCI: of_property: Constify parameter in of_pci_get_addr_flags()

The res parameter has no reason to be a pointer to an un-const struct
resource. Indeed, struct resource is not supposed to be modified by the
function.

Constify the res parameter.

Link: https://lore.kernel.org/r/20250224141356.36325-5-herve.codina@bootlin.com
Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
drivers/pci/of_property.c