From: Krzysztof Kozlowski Date: Mon, 9 Dec 2024 09:44:41 +0000 (+0100) Subject: ASoC: codecs: wcd9335: Add define for number of DAIs X-Git-Tag: v6.14-rc1~24^2~13^2~77 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=76c29db042e4f0fdea75c76cd4ad5f36080cd1c9;p=linux-block.git ASoC: codecs: wcd9335: Add define for number of DAIs Number of DAIs in the codec is not really a binding, because it could grow, e.g. when we implement missing features. Add the define to the driver, which will replace the one in the binding header. Signed-off-by: Krzysztof Kozlowski Link: https://patch.msgid.link/20241209094442.38900-1-krzysztof.kozlowski@linaro.org Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wcd9335.c b/sound/soc/codecs/wcd9335.c index a2521e16c099..7cef43bb2a88 100644 --- a/sound/soc/codecs/wcd9335.c +++ b/sound/soc/codecs/wcd9335.c @@ -159,6 +159,8 @@ {"AMIC MUX" #id, "ADC5", "ADC5"}, \ {"AMIC MUX" #id, "ADC6", "ADC6"} +#define NUM_CODEC_DAIS 7 + enum { WCD9335_RX0 = 0, WCD9335_RX1,