power: pmic: qcom: convert ofnode API to dev_read API
Replace ofnode_read_u32_index(dev_ofnode(dev), ...) with dev_read_u32_index(dev, ...). No functional change. Reviewed-by: Casey Connolly <casey.connolly@linaro.org> Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
@@ -72,7 +72,7 @@ static int pmic_qcom_probe(struct udevice *dev)
|
||||
* contains two discrete values, not a single 64-bit address.
|
||||
* The address is the first value.
|
||||
*/
|
||||
ret = ofnode_read_u32_index(dev_ofnode(dev), "reg", 0, &priv->usid);
|
||||
ret = dev_read_u32_index(dev, "reg", 0, &priv->usid);
|
||||
if (ret < 0)
|
||||
return -EINVAL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user