ASoC: mchp-spdiftx: simplify locking around ctrl->ch_stat
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Thu, 17 Nov 2022 12:37:48 +0000 (14:37 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 18 Nov 2022 11:57:04 +0000 (11:57 +0000)
commit215450eb8b0fac000a42c1cd52c8966fb5159037
treedca9e68d417511d90e94fa7ef4f159a20160b92c
parent82b21ca1912723a53534086864ee0daceb604cb5
ASoC: mchp-spdiftx: simplify locking around ctrl->ch_stat

Use a temporary variable to keep the AES3 value. With this a
spin_unlock_irqrestore() call has been removed from the final code.

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