Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

pwm: jz4740: Another few conversions to regmap_{set,clear}_bits()

Similar to commit 7d9199995412 ("pwm: jz4740: Use
regmap_{set,clear}_bits") convert two more regmap_update_bits() calls to
regmap_{set,clear}_bits() which were missed back then.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Reviewed-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20240606164047.534741-5-u.kleine-koenig@baylibre.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>

authored by

Uwe Kleine-König and committed by
Uwe Kleine-König
32b4f1a4 41814fe5

+4 -5
+4 -5
drivers/pwm/pwm-jz4740.c
··· 201 201 * state instead of its inactive state. 202 202 */ 203 203 if ((state->polarity == PWM_POLARITY_NORMAL) ^ state->enabled) 204 - regmap_update_bits(jz->map, TCU_REG_TCSRc(pwm->hwpwm), 205 - TCU_TCSR_PWM_INITL_HIGH, 0); 204 + regmap_clear_bits(jz->map, TCU_REG_TCSRc(pwm->hwpwm), 205 + TCU_TCSR_PWM_INITL_HIGH); 206 206 else 207 - regmap_update_bits(jz->map, TCU_REG_TCSRc(pwm->hwpwm), 208 - TCU_TCSR_PWM_INITL_HIGH, 209 - TCU_TCSR_PWM_INITL_HIGH); 207 + regmap_set_bits(jz->map, TCU_REG_TCSRc(pwm->hwpwm), 208 + TCU_TCSR_PWM_INITL_HIGH); 210 209 211 210 if (state->enabled) 212 211 jz4740_pwm_enable(chip, pwm);