ASoC: ops: Remove snd_soc_put_volsw_range()
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Tue, 18 Mar 2025 17:14:54 +0000 (17:14 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 19 Mar 2025 12:48:05 +0000 (12:48 +0000)
commit7d5df968f95cee274740d5fa42e0798ffb59bd38
tree95a9aaccf5a2768b79b64f9b3e1c6c84fee693b3
parentfd7442561cfe9516b37cdb1d229dc1f811dc86cc
ASoC: ops: Remove snd_soc_put_volsw_range()

With the addition of the soc_mixer_ctl_to_reg() helper it is now very
clear that the only difference between snd_soc_put_volsw() and
snd_soc_put_volsw_range() is that the former supports double controls
with both values in the same register. As such we can combine both
functions.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20250318171459.3203730-11-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h
sound/soc/codecs/wm5110.c
sound/soc/soc-ops.c
sound/soc/soc-topology.c