Explorar o código

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 <[email protected]>
Ganapathiraju Sarath Varma %!s(int64=2) %!d(string=hai) anos
pai
achega
c143a07c13
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      asoc/codecs/wsa884x/wsa884x.c

+ 1 - 1
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,