Skip to content

Commit eba614b

Browse files
Pei Xiaorafaeljw
authored andcommitted
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 <[email protected]> Link: https://patch.msgid.link/7ae7866ab8b897253703ecee44c688b6832d49a3.1745552799.git.xiaopei01@kylinos.cn [ rjw: Subject and changelog edits ] Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 92a09c4 commit eba614b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/acpi/pci_root.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ static void acpi_pci_root_validate_resources(struct device *dev,
858858
}
859859
}
860860

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,
862862
struct resource_entry *entry)
863863
{
864864
#ifdef PCI_IOBASE

0 commit comments

Comments
 (0)