[PATCH v2 3/4] pinctrl: bcm: Use regmap_field_{set/clear}_bits helpers
Li Chen
lchen.firstlove at zohomail.com
Sun May 22 19:25:03 PDT 2022
From: Li Chen <lchen at ambarella.com>
Appropriately change calls to regmap_field_update_bits()
with regmap_field_clear_bits() for improved readability.
Signed-off-by: Li Chen <lchen at ambarella.com>
---
drivers/pinctrl/bcm/pinctrl-bcm6358.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pinctrl/bcm/pinctrl-bcm6358.c b/drivers/pinctrl/bcm/pinctrl-bcm6358.c
index 9f6cd7447887..b03dfcb171d1 100644
--- a/drivers/pinctrl/bcm/pinctrl-bcm6358.c
+++ b/drivers/pinctrl/bcm/pinctrl-bcm6358.c
@@ -300,7 +300,7 @@ static int bcm6358_gpio_request_enable(struct pinctrl_dev *pctldev,
return 0;
/* disable all functions using this pin */
- return regmap_field_update_bits(priv->overlays, mask, 0);
+ return regmap_field_clear_bits(priv->overlays, mask);
}
static const struct pinctrl_ops bcm6358_pctl_ops = {
--
2.36.1
More information about the linux-arm-kernel
mailing list