aboutsummaryrefslogtreecommitdiff
path: root/drivers/rtc
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2023-08-02 01:26:02 +0200
committerTom Rini <trini@konsulko.com>2023-08-14 17:55:53 -0400
commitaaf5b5923054efbf1244dc7fbae68d0bd2a03cf7 (patch)
tree08e3baf6377c2ca050e116d5306841fa273dbceb /drivers/rtc
parentf7ee9f3d362a05cc3f7e04d0ceb373c2aea80de6 (diff)
gpio: Use separate bitfield array to indicate GPIO is claimed
The current gpio-uclass design uses name field in struct gpio_dev_priv as an indicator that GPIO is claimed by consumer. This overloads the function of name field and does not work well for named pins not configured as GPIO pins. Introduce separate bitfield array as the claim indicator. This unbreaks dual-purpose AF and GPIO operation on STM32MP since commit 2c38f7c31806 ("pinctrl: pinctrl_stm32: Populate uc_priv->name[] with pinmux node's name") where any pin which has already been configured as AF could no longer be claimed as dual-purpose GPIO. This is important for pins like STM32 MMCI st,cmd-gpios . Signed-off-by: Marek Vasut <marex@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/rtc')
0 files changed, 0 insertions, 0 deletions