From c143a07c138c6cd5748eb9d7235d488fd3f4c32f Mon Sep 17 00:00:00 2001 From: Ganapathiraju Sarath Varma Date: Tue, 31 May 2022 21:47:04 +0530 Subject: [PATCH] asoc: codec: update index to read bat cfg. Update index to read bat cfg from dtsi. Change-Id: I48ca32d149e14d8ce917be1ffa0822233f69239c Signed-off-by: Ganapathiraju Sarath Varma --- asoc/codecs/wsa884x/wsa884x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asoc/codecs/wsa884x/wsa884x.c b/asoc/codecs/wsa884x/wsa884x.c index 342f887bdc..0435261d72 100644 --- a/asoc/codecs/wsa884x/wsa884x.c +++ b/asoc/codecs/wsa884x/wsa884x.c @@ -2163,7 +2163,7 @@ static int wsa884x_swr_probe(struct swr_device *pdev) ret = of_property_read_u32_index( wsa884x->macro_dev->dev.of_node, "qcom,wsa-bat-cfgs", - dev_index - 1, + wsa_dev_index, &wsa884x->bat_cfg); if (ret) { dev_err(&pdev->dev,