]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gpio: aspeed: Remove the name for bank array
authorBilly Tsai <billy_tsai@aspeedtech.com>
Tue, 8 Oct 2024 08:14:47 +0000 (16:14 +0800)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 14 Oct 2024 07:04:02 +0000 (09:04 +0200)
commitd787289589202cd449cabed3d7fde84e18fb6dd6
tree5ec2d56c7278206d07dbbc519df92fafd6bade00
parentf1bc03e7e9bbbb18ad60ad6c6908b16fb7f40545
gpio: aspeed: Remove the name for bank array

The bank array name is only used to determine if the GPIO offset is valid,
and this condition can be replaced by checking if the offset exceeds the
ngpio property.

Reviewed-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
Link: https://lore.kernel.org/r/20241008081450.1490955-5-billy_tsai@aspeedtech.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-aspeed.c