From: Uwe Kleine-König Date: Thu, 6 Jun 2024 16:40:47 +0000 (+0200) Subject: pwm: axi-pwmgen: Make use of regmap_clear_bits() X-Git-Tag: v6.11-rc1~211^2~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3555f8ff30fe7d19cc2408e7d3bc18720b208e5f;p=thirdparty%2Fkernel%2Flinux.git pwm: axi-pwmgen: Make use of regmap_clear_bits() Instead of using regmap_update_bits() and passing val=0, better use regmap_clear_bits(). Signed-off-by: Uwe Kleine-König Acked-by: Trevor Gamblin Reviewed-by: Nuno Sa Link: https://lore.kernel.org/r/20240606164047.534741-6-u.kleine-koenig@baylibre.com Signed-off-by: Uwe Kleine-König --- diff --git a/drivers/pwm/pwm-axi-pwmgen.c b/drivers/pwm/pwm-axi-pwmgen.c index 1bd4150e01585..aac4f395497ba 100644 --- a/drivers/pwm/pwm-axi-pwmgen.c +++ b/drivers/pwm/pwm-axi-pwmgen.c @@ -156,7 +156,7 @@ static int axi_pwmgen_setup(struct regmap *regmap, struct device *dev) } /* Enable the core */ - ret = regmap_update_bits(regmap, AXI_PWMGEN_REG_CONFIG, AXI_PWMGEN_REG_CONFIG_RESET, 0); + ret = regmap_clear_bits(regmap, AXI_PWMGEN_REG_CONFIG, AXI_PWMGEN_REG_CONFIG_RESET); if (ret) return ret;