genirq/irq_sim: Return the base of the irq range from irq_sim_init()
authorBartosz Golaszewski <brgl@bgdev.pl>
Sun, 4 Mar 2018 12:10:18 +0000 (13:10 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 9 Mar 2018 10:44:03 +0000 (11:44 +0100)
commitf09777fa891327ee0dd892e83619f156bf1c37e6
tree24ce54eedf5577b0880b76d304e65c0493b52ab4
parent28b6afa7d4456e759031bf83706b4be3689fba94
genirq/irq_sim: Return the base of the irq range from irq_sim_init()

Returning the base of the allocated interrupt range from irq_sim_init() and
devm_irq_sim_init() allows users to handle the logic of associating irq
numbers with any other driver-specific resources without having to use
irq_sim_irqnum().

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Link: https://lkml.kernel.org/r/20180304121018.640-4-brgl@bgdev.pl
kernel/irq/irq_sim.c