Re: [PATCH 08/11] power: pmic: qcom: convert ofnode API to dev_read API
Casey Connolly <[email protected]> Thu, 4 Jun 2026 16:53:10 +0200
| Newsgroups | io.groups.u-boot-amlogic,de.denx.lists.u-boot |
|---|---|
| Message-ID | <[email protected]> |
On 6/4/26 14:20, Peng Fan (OSS) wrote: > From: Peng Fan <[email protected]> > > Replace ofnode_read_u32_index(dev_ofnode(dev), ...) with > dev_read_u32_index(dev, ...). > > No functional change. > > Signed-off-by: Peng Fan <[email protected]> Reviewed-by: Casey Connolly <[email protected]> > --- > drivers/power/pmic/pmic_qcom.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/power/pmic/pmic_qcom.c b/drivers/power/pmic/pmic_qcom.c > index 92d0a95859b..4b8dcc6104c 100644 > --- a/drivers/power/pmic/pmic_qcom.c > +++ b/drivers/power/pmic/pmic_qcom.c > @@ -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; > >