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>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
3d5c67920e
commit
c143a07c13
@@ -2163,7 +2163,7 @@ static int wsa884x_swr_probe(struct swr_device *pdev)
|
|||||||
ret = of_property_read_u32_index(
|
ret = of_property_read_u32_index(
|
||||||
wsa884x->macro_dev->dev.of_node,
|
wsa884x->macro_dev->dev.of_node,
|
||||||
"qcom,wsa-bat-cfgs",
|
"qcom,wsa-bat-cfgs",
|
||||||
dev_index - 1,
|
wsa_dev_index,
|
||||||
&wsa884x->bat_cfg);
|
&wsa884x->bat_cfg);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_err(&pdev->dev,
|
dev_err(&pdev->dev,
|
||||||
|
Reference in New Issue
Block a user