summaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-mediatek.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2022-12-02 19:35:18 +0100
committerThierry Reding <thierry.reding@gmail.com>2022-12-06 12:46:11 +0100
commit632ae5d7eb348b3ef88552ec0999260b6f9d6ab1 (patch)
tree4679038605b666fab0d1a656828df11457f082ab /drivers/pwm/pwm-mediatek.c
parentpwm: stm32-lp: Use regmap_clear_bits and regmap_set_bits where applicable (diff)
downloadlinux-632ae5d7eb348b3ef88552ec0999260b6f9d6ab1.tar.xz
linux-632ae5d7eb348b3ef88552ec0999260b6f9d6ab1.zip
pwm: stm32: Use regmap_clear_bits and regmap_set_bits where applicable
Found using coccinelle and the following semantic patch: @@ expression map, reg, bits; @@ - regmap_update_bits(map, reg, bits, bits) + regmap_set_bits(map, reg, bits) @@ expression map, reg, bits; @@ - regmap_update_bits(map, reg, bits, 0) + regmap_clear_bits(map, reg, bits) Tested-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com> Link: https://lore.kernel.org/r/20221115111347.3705732-6-u.kleine-koenig@pengutronix.de Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm/pwm-mediatek.c')
0 files changed, 0 insertions, 0 deletions