]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: ops: Factor out helper to check valid control values
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Tue, 18 Mar 2025 17:14:49 +0000 (17:14 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 19 Mar 2025 12:48:01 +0000 (12:48 +0000)
commiteeb76cb1fa0dcccf33091b04ba150076dfbeb6fd
treeaec17d7d3dfa30c28efd806c90a1163a3684ae64
parentc6002c1177cafb4462b6c188d2a62eb67f15165f
ASoC: ops: Factor out helper to check valid control values

Most of the put handlers have identical code to verify the value passed
in from user-space. Factor this out into a single helper function.

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