[PATCH 08/11] power: pmic: qcom: convert ofnode API to dev_read API
Casey Connolly
casey.connolly at linaro.org
Thu Jun 4 16:53:10 CEST 2026
On 6/4/26 14:20, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan at nxp.com>
>
> Replace ofnode_read_u32_index(dev_ofnode(dev), ...) with
> dev_read_u32_index(dev, ...).
>
> No functional change.
>
> Signed-off-by: Peng Fan <peng.fan at nxp.com>
Reviewed-by: Casey Connolly <casey.connolly at linaro.org>
> ---
> 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;
>
>
More information about the U-Boot
mailing list