]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gpio: ath79: convert to dynamic GPIO base allocation
authorShiji Yang <yangshiji66@outlook.com>
Wed, 26 Jun 2024 00:33:18 +0000 (08:33 +0800)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 26 Jun 2024 08:39:08 +0000 (10:39 +0200)
commit9a473c2a093e0d1c466bf86073230e2c8b658977
tree4b062d9a51ba128db0411744577dddf6a3911b15
parent8657af6c0a9afaa11947b7476119834898823b52
gpio: ath79: convert to dynamic GPIO base allocation

ath79 target has already been converted to device tree based platform.
Use dynamic GPIO numberspace base to suppress the warning:

gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.

Tested on Atheros AR7241 and AR9344.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Suggested-by: Jonas Gorski <jonas.gorski@gmail.com>
Link: https://lore.kernel.org/r/TYCP286MB089598EA71E964BD8AB9EFD3BCD62@TYCP286MB0895.JPNP286.PROD.OUTLOOK.COM
[Bartosz: tweaked the commit message]
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-ath79.c