clk: vc5: Use regmap_{set,clear}_bits() where appropriate
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 19 Jul 2022 09:46:37 +0000 (11:46 +0200)
committerStephen Boyd <sboyd@kernel.org>
Sat, 1 Oct 2022 00:02:45 +0000 (17:02 -0700)
commit01874fb2a3e60365d9cc68cd931ac9ad6e90025a
tree7c3b4a7f176ae8ea57cfd82693eb0c60a5cb7380
parentcc3237827a21ca6fe29085a78f96b0509cf6d095
clk: vc5: Use regmap_{set,clear}_bits() where appropriate

regmap_set_bits() and regmap_clear_bits() are variations of
regmap_update_bits() that can be used if all bits of the mask have to be
set to either 1 or 0 respectively.

Update the versaclk driver to use regmap_set_bits() and regmap_clear_bits()
where appropriate. This results in slightly more compact code and also
makes the intention of the code clearer which can help with review.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Link: https://lore.kernel.org/r/20220719094637.844946-2-lars@metafoo.de
Reviewed-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-versaclock5.c