]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - include/linux/pci.h
PCI/irq: Add pci_request_irq() and pci_free_irq() helpers
authorChristoph Hellwig <hch@lst.de>
Thu, 13 Apr 2017 07:06:42 +0000 (09:06 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 18 Apr 2017 18:40:31 +0000 (13:40 -0500)
commit704e8953d3e9db29d5d93c0bf6973d86fe15e679
treef34833d4b925ce03294c4cae398877f1f1d95f07
parent25ce4be72411867e0471908ee9319599035cc624
PCI/irq: Add pci_request_irq() and pci_free_irq() helpers

These are small wrappers around request_threaded_irq() and free_irq(),
which dynamically allocate space for the device name so that drivers don't
need to keep static buffers for these around.  Additionally it works with
device-relative vector numbers to make the usage easier, and force the
IRQF_SHARED flag on given that it has no runtime overhead and should be
supported by all PCI devices.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
drivers/pci/irq.c
include/linux/pci.h