[PATCH 3/6] ASoC: cs48l32: use str_lock_unlock() helper
From: Dmitry Antipov
Date: Thu Aug 20 2026 - 02:19:50 EST
In 'cs48l32_wait_for_fll()', prefer 'str_lock_unlock()' choice
helper over hardcoded strings.
Signed-off-by: Dmitry Antipov <dmantipov@xxxxxxxxx>
---
sound/soc/codecs/cs48l32.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sound/soc/codecs/cs48l32.c b/sound/soc/codecs/cs48l32.c
index a9967771124e..47093320e8eb 100644
--- a/sound/soc/codecs/cs48l32.c
+++ b/sound/soc/codecs/cs48l32.c
@@ -22,6 +22,7 @@
#include <linux/property.h>
#include <linux/regmap.h>
#include <linux/regulator/consumer.h>
+#include <linux/string_choices.h>
#include <linux/slab.h>
#include <linux/spi/spi.h>
#include <linux/string_choices.h>
@@ -1541,7 +1542,8 @@ static int cs48l32_wait_for_fll(struct cs48l32_fll *fll, bool requested)
}
}
- cs48l32_fll_warn(fll, "Timed out waiting for %s\n", requested ? "lock" : "unlock");
+ cs48l32_fll_warn(fll, "Timed out waiting for %s\n",
+ str_lock_unlock(requested));
return -ETIMEDOUT;
}
--
2.55.0