diff options
| author | Uwe Kleine-König <[email protected]> | 2022-12-02 18:35:17 +0000 |
|---|---|---|
| committer | Thierry Reding <[email protected]> | 2022-12-06 11:46:10 +0000 |
| commit | 85cad49f5ed269ffa0c80081d6506e39fa78456b (patch) | |
| tree | 82b5718a0e5bcd6dcaf00e968f548a04b6ee8012 /drivers/pwm/pwm-stm32.c | |
| parent | pwm: iqs620a: Use regmap_clear_bits and regmap_set_bits where applicable (diff) | |
| download | kernel-85cad49f5ed269ffa0c80081d6506e39fa78456b.tar.gz kernel-85cad49f5ed269ffa0c80081d6506e39fa78456b.zip | |
pwm: stm32-lp: 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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-stm32.c')
0 files changed, 0 insertions, 0 deletions
