]> git.baikalelectronics.ru Git - kernel.git/commit
genirq: introduce irq_domain_translate_twocell
authorBrian Masney <masneyb@onstation.org>
Fri, 8 Feb 2019 02:16:22 +0000 (21:16 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 13 Feb 2019 08:22:05 +0000 (09:22 +0100)
commitf404bf4d7a29a773b621e631917fdae5e144c662
treec73972b330070d8f07b626888b1baccfa80d0d25
parentcb8d3b3eaf8b07b97454c05575f6988801eaf021
genirq: introduce irq_domain_translate_twocell

Add a new function irq_domain_translate_twocell() that is to be used as
the translate function in struct irq_domain_ops for the v2 IRQ API.

This patch also changes irq_domain_xlate_twocell() from the v1 IRQ API
to call irq_domain_translate_twocell() in the v2 IRQ API. This required
changes to of_phandle_args_to_fwspec()'s arguments so that it can be
called from multiple places.

Cc: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
include/linux/irqdomain.h
kernel/irq/irqdomain.c