From: Jeff LaBundy Date: Mon, 6 Feb 2023 02:56:22 +0000 (-0600) Subject: pwm: iqs620a: Replace one remaining instance of regmap_update_bits() X-Git-Tag: v6.3-rc1~51^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=860793bbdcdfbeae684d552ce0121846cffc4803;p=thirdparty%2Fkernel%2Flinux.git pwm: iqs620a: Replace one remaining instance of regmap_update_bits() The call to regmap_update_bits() which was responsible for clearing the PWM output enable register bit was recently dropped in favor of a call to regmap_clear_bits(), thereby simplifying the code. Similarly, the call to regmap_update_bits() which sets the same bit can be simplified with a call to regmap_set_bits(). Signed-off-by: Jeff LaBundy Reviewed-by: Uwe Kleine-König Signed-off-by: Thierry Reding --- diff --git a/drivers/pwm/pwm-iqs620a.c b/drivers/pwm/pwm-iqs620a.c index 4987ca940b648..8362b4870c66c 100644 --- a/drivers/pwm/pwm-iqs620a.c +++ b/drivers/pwm/pwm-iqs620a.c @@ -55,8 +55,8 @@ static int iqs620_pwm_init(struct iqs620_pwm_private *iqs620_pwm, if (ret) return ret; - return regmap_update_bits(iqs62x->regmap, IQS620_PWR_SETTINGS, - IQS620_PWR_SETTINGS_PWM_OUT, 0xff); + return regmap_set_bits(iqs62x->regmap, IQS620_PWR_SETTINGS, + IQS620_PWR_SETTINGS_PWM_OUT); } static int iqs620_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,