]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
power: pmic: s2mps11: change the probe function to bind
authorKaustabh Chakraborty <kauschluss@disroot.org>
Fri, 17 Oct 2025 15:28:16 +0000 (20:58 +0530)
committerPeng Fan <peng.fan@nxp.com>
Thu, 30 Oct 2025 02:11:18 +0000 (10:11 +0800)
The probe function, s2mps11_probe() is responsible for binding its PMIC
children. The driver doesn't have any functionality directly, but has
sub-devices which are parts of the device. Therefore, this should be a
bind function. This is the case in the Samsung S5M8767 PMIC driver.

Signed-off-by: Kaustabh Chakraborty <kauschluss@disroot.org>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/power/pmic/s2mps11.c

index 6e81957903012d0f33fbea44c70db4b583993a99..23c96da3fdf485e171252f76f54a8778fa8bb20a 100644 (file)
@@ -47,7 +47,7 @@ static int s2mps11_read(struct udevice *dev, uint reg, uint8_t *buff, int len)
        return ret;
 }
 
-static int s2mps11_probe(struct udevice *dev)
+static int s2mps11_bind(struct udevice *dev)
 {
        ofnode regulators_node;
        int children;
@@ -84,5 +84,5 @@ U_BOOT_DRIVER(pmic_s2mps11) = {
        .id = UCLASS_PMIC,
        .of_match = s2mps11_ids,
        .ops = &s2mps11_ops,
-       .probe = s2mps11_probe,
+       .bind = s2mps11_bind,
 };