pinctrl: bcm2835: Implement bcm2835_pinconf_get
authorStefan Wahren <wahrenst@gmx.net>
Thu, 7 Mar 2024 07:01:12 +0000 (08:01 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 28 Mar 2024 08:52:25 +0000 (09:52 +0100)
commit85b02bc0785b5e6326814af7e1b7528ce3a488ea
tree1195261ba6181dc683242b012b8b780d45a27c99
parent76c22f094153478dc89735c9bd259ad99f933913
pinctrl: bcm2835: Implement bcm2835_pinconf_get

Even the driver already has implemented pin_dbg_show, it could
be helpful to implement pin_conf_get for a more generic behavior.
Contrary to the BCM2711, the BCM2835 SOC doesn't allow to read
the bias config, so the implementation is limited to the basics.

Keep ENOTSUPP here, because it's only used internally.

Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Message-ID: <20240307070113.4888-2-wahrenst@gmx.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/bcm/pinctrl-bcm2835.c