gpio: sifive: To get gpio irq offset from device tree data
authorGreentime Hu <greentime.hu@sifive.com>
Fri, 13 Nov 2020 02:33:55 +0000 (10:33 +0800)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 18 Nov 2020 08:28:43 +0000 (09:28 +0100)
commitf52d6d8b43e51cb2d0dbd60caf7d37150391182f
tree2da2d60178cef09dde13624167bc042493a7a23b
parent3c6e73e47afc874c231b48157be669efaf768471
gpio: sifive: To get gpio irq offset from device tree data

We can get hwirq number of the gpio by its irq_data->hwirq so that we don't
need to add more macros for different platforms. This patch is tested in
SiFive Unleashed board and SiFive Unmatched board.

Signed-off-by: Greentime Hu <greentime.hu@sifive.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-sifive.c