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 <quic_ganavarm@quicinc.com>
这个提交包含在:
Ganapathiraju Sarath Varma
2022-05-31 21:47:04 +05:30
提交者 Gerrit - the friendly Code Review server
父节点 3d5c67920e
当前提交 c143a07c13

查看文件

@@ -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,