mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
Merge "asoc: codecs: wcd938x: match slave property to dt"
This commit is contained in:
commit
32754ec645
1 changed files with 4 additions and 4 deletions
|
|
@ -2675,8 +2675,8 @@ struct wcd938x_pdata *wcd938x_populate_dt_data(struct device *dev)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
pdata->rx_slave = of_parse_phandle(dev->of_node, "qcom,rx-swr-slave", 0);
|
||||
pdata->tx_slave = of_parse_phandle(dev->of_node, "qcom,tx-swr-slave", 0);
|
||||
pdata->rx_slave = of_parse_phandle(dev->of_node, "qcom,rx-slave", 0);
|
||||
pdata->tx_slave = of_parse_phandle(dev->of_node, "qcom,tx-slave", 0);
|
||||
|
||||
wcd938x_dt_parse_micbias_info(dev, &pdata->micbias);
|
||||
|
||||
|
|
@ -2798,7 +2798,7 @@ static int wcd938x_add_slave_components(struct device *dev,
|
|||
|
||||
np = dev->of_node;
|
||||
|
||||
rx_node = of_parse_phandle(np, "qcom,rx-swr-slave", 0);
|
||||
rx_node = of_parse_phandle(np, "qcom,rx-slave", 0);
|
||||
if (!rx_node) {
|
||||
dev_err(dev, "%s: Rx-slave node not defined\n", __func__);
|
||||
return -ENODEV;
|
||||
|
|
@ -2809,7 +2809,7 @@ static int wcd938x_add_slave_components(struct device *dev,
|
|||
wcd938x_compare_of,
|
||||
rx_node);
|
||||
|
||||
tx_node = of_parse_phandle(np, "qcom,tx-swr-slave", 0);
|
||||
tx_node = of_parse_phandle(np, "qcom,tx-slave", 0);
|
||||
if (!tx_node) {
|
||||
dev_err(dev, "%s: Tx-slave node not defined\n", __func__);
|
||||
return -ENODEV;
|
||||
|
|
|
|||
Loading…
Reference in a new issue