pinctrl: ingenic: Add .max_register in regmap_config
authorPaul Cercueil <paul@crapouillou.net>
Sat, 17 Jul 2021 17:48:36 +0000 (18:48 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 11 Aug 2021 08:24:06 +0000 (10:24 +0200)
commit6626a76ef857c937ba7b96f0ea8bb5451c1419eb
treed537997e7f67a9f750cf6fb8873289ec1dcabc8e
parent7261851e938f4b0fe8c0f5a8e627ae90e1ba9875
pinctrl: ingenic: Add .max_register in regmap_config

Compute the max register from the GPIO chip offset and number of GPIO
chips.

This permits to read all registers from debugfs.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Tested-by: 周琰杰 (Zhou Yanjie)<zhouyanjie@wanyeetech.com>
Link: https://lore.kernel.org/r/20210717174836.14776-3-paul@crapouillou.net
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-ingenic.c