diff mbox series

[v2,2/7] ASoC: soc-utils: care -EOPNOTSUPP on snd_soc_ret()

Message ID 87ed0d2qlt.wl-kuninori.morimoto.gx@renesas.com (mailing list archive)
State New
Headers show
Series ASoC: and adn use snd_soc_ret() | expand

Commit Message

Kuninori Morimoto Feb. 5, 2025, 12:16 a.m. UTC
We get below warning by checkpatch on soc-utils.
Adds EOPNOTSUPP, but not remove existing ENOTSUPP.

	WARNING: ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 sound/soc/soc-utils.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/sound/soc/soc-utils.c b/sound/soc/soc-utils.c
index e8958158acc11..318b141c00b38 100644
--- a/sound/soc/soc-utils.c
+++ b/sound/soc/soc-utils.c
@@ -28,6 +28,7 @@  int snd_soc_ret(const struct device *dev, int ret, const char *fmt, ...)
 	switch (ret) {
 	case -EPROBE_DEFER:
 	case -ENOTSUPP:
+	case -EOPNOTSUPP:
 		break;
 	default:
 		va_start(args, fmt);