ASoC: mchp-spdiftx: use regmap_update_bits()
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Wed, 1 Mar 2023 11:38:01 +0000 (13:38 +0200)
committerMark Brown <broonie@kernel.org>
Sun, 5 Mar 2023 23:37:42 +0000 (23:37 +0000)
commit0ab4bd5bf277349262065e88eb2feaaabf53584c
tree78c6f627af63151e807e165ee6db6df5e5ca7e3c
parent28ce5698456ab53540093836c6fee15119cf1821
ASoC: mchp-spdiftx: use regmap_update_bits()

Use regmap_update_bits() instead of regmap_read(), running variable,
regmap_write(). There is no need for extra variables and checks around
it as regmap_update_bits() already does this. With this code becomes
simpler.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20230301113807.24036-3-claudiu.beznea@microchip.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/atmel/mchp-spdiftx.c