diff options
author | 2025-03-19 17:51:21 +0000 | |
---|---|---|
committer | 2025-03-19 17:56:34 +0000 | |
commit | 1e3cd64a29baa874b89180ac0744178ecb00f3cd (patch) | |
tree | ee7e64ea5dc69e63f08bd2be882595c8e82c683a /scripts/lib/kdoc/kdoc_files.py | |
parent | ASoC: ops: Factor out common code from put callbacks (diff) | |
download | wireguard-linux-1e3cd64a29baa874b89180ac0744178ecb00f3cd.tar.xz wireguard-linux-1e3cd64a29baa874b89180ac0744178ecb00f3cd.zip |
ASoC: ops: Factor out common code from get callbacks
There are only two differences between snd_soc_get_volsw() and
snd_soc_get_volsw_sx(). The maximum field is handled differently, and
snd_soc_get_volsw() supports double controls with both values in the
same register.
Factor out the common code into a new helper and pass in the
appropriate max value such that it is handled correctly for each
control.
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20250319175123.3835849-2-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions