Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI: PCI: Constify fwnode_handle in acpi_pci_root_remap_iospace()

The fwnode_handle pointer passed into pci_register_io_range() is not
modified, so annotate it as const.

Signed-off-by: Pei Xiao <xiaopei01@kylinos.cn>
Link: https://patch.msgid.link/7ae7866ab8b897253703ecee44c688b6832d49a3.1745552799.git.xiaopei01@kylinos.cn
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Pei Xiao and committed by
Rafael J. Wysocki
eba614b8 92a09c47

+1 -1
+1 -1
drivers/acpi/pci_root.c
··· 858 858 } 859 859 } 860 860 861 - static void acpi_pci_root_remap_iospace(struct fwnode_handle *fwnode, 861 + static void acpi_pci_root_remap_iospace(const struct fwnode_handle *fwnode, 862 862 struct resource_entry *entry) 863 863 { 864 864 #ifdef PCI_IOBASE