diff options
author | 2021-12-10 23:19:09 +0100 | |
---|---|---|
committer | 2021-12-16 22:16:39 +0100 | |
commit | 9835cec6d557b0bff3d48bd91cd0484aba59386c (patch) | |
tree | cd68c1673976c38f87e91e3ea647c261c6e52ecd /include/linux/msi.h | |
parent | genirq/msi: Remove the original sysfs interfaces (diff) | |
download | linux-9835cec6d557b0bff3d48bd91cd0484aba59386c.tar.gz linux-9835cec6d557b0bff3d48bd91cd0484aba59386c.tar.bz2 linux-9835cec6d557b0bff3d48bd91cd0484aba59386c.zip |
platform-msi: Rename functions and clarify comments
It's hard to distinguish what platform_msi_domain_alloc() and
platform_msi_domain_alloc_irqs() are about. Make the distinction more
explicit and add comments which explain the use cases properly.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20211210221814.228706214@linutronix.de
Diffstat (limited to 'include/linux/msi.h')
-rw-r--r-- | include/linux/msi.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/msi.h b/include/linux/msi.h index 634a12962e72..12dd28629c43 100644 --- a/include/linux/msi.h +++ b/include/linux/msi.h @@ -435,10 +435,10 @@ __platform_msi_create_device_domain(struct device *dev, #define platform_msi_create_device_tree_domain(dev, nvec, write, ops, data) \ __platform_msi_create_device_domain(dev, nvec, true, write, ops, data) -int platform_msi_domain_alloc(struct irq_domain *domain, unsigned int virq, - unsigned int nr_irqs); -void platform_msi_domain_free(struct irq_domain *domain, unsigned int virq, - unsigned int nvec); +int platform_msi_device_domain_alloc(struct irq_domain *domain, unsigned int virq, + unsigned int nr_irqs); +void platform_msi_device_domain_free(struct irq_domain *domain, unsigned int virq, + unsigned int nvec); void *platform_msi_get_host_data(struct irq_domain *domain); #endif /* CONFIG_GENERIC_MSI_IRQ_DOMAIN */ |