]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: cs35l56: Use SOC_ENUM_EXT_ACC() for CAL_SET_STATUS control
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Thu, 20 Nov 2025 13:44:36 +0000 (13:44 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 20 Nov 2025 16:04:21 +0000 (16:04 +0000)
commit4dd7f8aeed4c85234f3855ef3188ed2202f2c947
tree028d2687e6ad5036a2651fed966894d9fc082696
parentd7a82707f19c7a11ce42dd46cb22ca34a58cc9b0
ASoC: cs35l56: Use SOC_ENUM_EXT_ACC() for CAL_SET_STATUS control

Use the new SOC_ENUM_EXT_ACC() macro instead of SOC_ENUM_EXT() to
define the CAL_SET_STATUS control, so that it is marked as read-only
and volatile.

This avoids userland code expecting to be able to write to it and
then getting an unexpected EPERM error, or assuming that its value
can never change.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://patch.msgid.link/20251120134437.1179191-4-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l56.c