ramips: ralink-gpio: use irqchip helpers to register driver
authorShiji Yang <yangshiji66@qq.com>
Wed, 23 Oct 2024 13:56:23 +0000 (21:56 +0800)
committerRobert Marko <robimarko@gmail.com>
Fri, 25 Oct 2024 11:56:14 +0000 (13:56 +0200)
commit2b2abdbb75fed15332011a3e4bd4764fc433c0bf
tree1dc5c4d861665d8130c79a0f7cb8b68e529acc72
parent27657050d02f13d1e737293ac7ad08686b4c6fd3
ramips: ralink-gpio: use irqchip helpers to register driver

The gpiolib has already introduced a general GPIO irqchip framework
to initialize the GPIO irqchip[1]. This patch will make use of it
to simplify the legacy Ralink GPIO driver codes. This patch also
includes some code readability improvements.

[1] 1425052097b5 ("gpio: add IRQ chip helpers in gpiolib")
Signed-off-by: Shiji Yang <yangshiji66@qq.com>
Link: https://github.com/openwrt/openwrt/pull/16764
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/ramips/mt7620/config-6.6
target/linux/ramips/mt7621/config-6.6
target/linux/ramips/mt76x8/config-6.6
target/linux/ramips/patches-6.6/801-DT-Add-documentation-for-gpio-ralink.patch
target/linux/ramips/patches-6.6/802-GPIO-MIPS-ralink-add-gpio-driver-for-ralink-SoC.patch
target/linux/ramips/patches-6.6/803-gpio-ralink-Add-support-for-GPIO-as-interrupt-contro.patch [deleted file]
target/linux/ramips/rt288x/config-6.6
target/linux/ramips/rt305x/config-6.6
target/linux/ramips/rt3883/config-6.6