]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: ops: Update mask generation to use GENMASK
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Tue, 18 Mar 2025 17:14:48 +0000 (17:14 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 19 Mar 2025 12:48:00 +0000 (12:48 +0000)
commitc6002c1177cafb4462b6c188d2a62eb67f15165f
tree3b406d182d2d5c1cf0ccdd2f2b9222260dd5dfb7
parent7f978180673b4f3b68fcc66fc1f1d74a1fc5a93a
ASoC: ops: Update mask generation to use GENMASK

Use GENMASK to make the masks for the various control helper functions.
Also factor out a shared helper function for the volsw and volsw_range
controls since the same code is appropriate for each. Note this does add
support for sign_bit into the volsw_range callbacks.

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