pwm: jz4740: Use regmap_{set,clear}_bits
authorPaul Cercueil <paul@crapouillou.net>
Mon, 24 Oct 2022 20:52:13 +0000 (21:52 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Tue, 29 Nov 2022 12:06:47 +0000 (13:06 +0100)
commit7d9199995412fd30ea79e24d6c29f04a9b5d49ee
tree02a740cfdd8eddebb7bae5b65b75540a2be3d951
parent69ba53dac3b16a3b0aa65e7817901e67bc554b32
pwm: jz4740: Use regmap_{set,clear}_bits

Simplify a bit the code by using regmap_set_bits() and
regmap_clear_bits() instead of regmap_update_bits() when possible.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-jz4740.c