From: Li Chen <[email protected]>
Appropriately change calls to regmap_field_update_bits()
with regmap_field_clear_bits() for improved readability.
Signed-off-by: Li Chen <[email protected]>
---
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