irqchip/irq-imx-gpcv2: Share reg offset calculation code
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Thu, 6 Dec 2018 07:31:22 +0000 (23:31 -0800)
committerMarc Zyngier <marc.zyngier@arm.com>
Thu, 13 Dec 2018 09:35:54 +0000 (09:35 +0000)
commitbd654fb67acf737952e97822c8681dbcf4b6d462
tree50bf41d30e94f8ab045511792259ec0289565c09
parentb87442b0745e9d54889caa8c9f28528cb8abac9d
irqchip/irq-imx-gpcv2: Share reg offset calculation code

Move identical offset calculation code into a small helper function
and make use of it in the rest of the code.

Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: cphealy@gmail.com
Cc: l.stach@pengutronix.de
Cc: Leonard Crestez <leonard.crestez@nxp.com>
Cc: "A.s. Dong" <aisheng.dong@nxp.com>
Cc: Richard Zhu <hongxing.zhu@nxp.com>
Cc: linux-imx@nxp.com
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-imx-gpcv2.c