aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-davinci.c
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@csgroup.eu>2022-09-02 14:42:02 +0200
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2022-10-17 11:02:35 +0200
commit95b39792c6646322e0684f1a1aa395ee82b6f3fb (patch)
tree4431d8df35466e31c1e70ba5cede4507de842564 /drivers/gpio/gpio-davinci.c
parent317627a4a19e2a6f8d60e3e2eefe6dfd87059d79 (diff)
downloadlinux-95b39792c6646322e0684f1a1aa395ee82b6f3fb.tar.gz
linux-95b39792c6646322e0684f1a1aa395ee82b6f3fb.tar.bz2
linux-95b39792c6646322e0684f1a1aa395ee82b6f3fb.zip
gpio: aggregator: Stop using ARCH_NR_GPIOS
ARCH_NR_GPIOS is used locally in aggr_parse() as the maximum number of GPIOs to be aggregated together by the driver since commit ec75039d5550 ("gpio: aggregator: Use bitmap_parselist() for parsing GPIO offsets"). Don't rely on the total possible number of GPIOs in the system but define a local arbitrary macro for that, set to 512 which should be large enough as it is also the default value for ARCH_NR_GPIOS. Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-davinci.c')
0 files changed, 0 insertions, 0 deletions