]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
power: pmic: qcom: convert ofnode API to dev_read API
authorPeng Fan <peng.fan@nxp.com>
Thu, 4 Jun 2026 12:20:31 +0000 (20:20 +0800)
committerPeng Fan <peng.fan@nxp.com>
Tue, 9 Jun 2026 15:55:56 +0000 (23:55 +0800)
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>
drivers/power/pmic/pmic_qcom.c

index 92d0a95859b0fed240363b04053e04efbb4a1f40..4b8dcc6104cbb6171e669ada3c69fb882886f3c5 100644 (file)
@@ -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;