There is nothing PCI specific in iort_msi_map_rid(). Rename the function using a bus protocol agnostic name, iort_msi_map_id(), and convert current callers to it.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -28,7 +28,7 @@ void iort_deregister_domain_token(int trans_id); · 27 unmodified lines | ||
| 28 | 28 | struct fwnode_handle *iort_find_domain_token(int trans_id); |
| 29 | 29 | #ifdef CONFIG_ACPI_IORT |
| 30 | 30 | void acpi_iort_init(void); |
| 31 | −u32 iort_msi_map_rid(struct device *dev, u32 req_id); | |
| 31 | +u32 iort_msi_map_id(struct device *dev, u32 id); | |
| 32 | 32 | struct irq_domain *iort_get_device_domain(struct device *dev, u32 id, |
| 33 | 33 | enum irq_domain_bus_token bus_token); |
| 34 | 34 | void acpi_configure_pmsi_domain(struct device *dev); |
| @@ -39,8 +39,8 @@ const struct iommu_ops *iort_iommu_configure(struct device *dev); · 4 unmodified lines | ||
| 39 | 39 | int iort_iommu_msi_get_resv_regions(struct device *dev, struct list_head *head); |
| 40 | 40 | #else |
| 41 | 41 | static inline void acpi_iort_init(void) { } |
| 42 | −static inline u32 iort_msi_map_rid(struct device *dev, u32 req_id) | |
| 43 | −{ return req_id; } | |
| 42 | +static inline u32 iort_msi_map_id(struct device *dev, u32 id) | |
| 43 | +{ return id; } | |
| 44 | 44 | static inline struct irq_domain *iort_get_device_domain( |
| 45 | 45 | struct device *dev, u32 id, enum irq_domain_bus_token bus_token) |
| 46 | 46 | { return NULL; } |