diff options
| author | Kaustabh Chakraborty <[email protected]> | 2025-10-17 20:58:16 +0530 |
|---|---|---|
| committer | Peng Fan <[email protected]> | 2025-10-30 10:11:18 +0800 |
| commit | 86f793120ca62f3599e7907005a3cb8302e55fda (patch) | |
| tree | a60d3085491ed35951b6cef0af958074b16d5219 /drivers/power | |
| parent | 07d2aa783cd50ede621ba6e51b3017b38791f478 (diff) | |
power: pmic: s2mps11: change the probe function to bind
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 <[email protected]>
Reviewed-by: Peng Fan <[email protected]>
Signed-off-by: Peng Fan <[email protected]>
Diffstat (limited to 'drivers/power')
| -rw-r--r-- | drivers/power/pmic/s2mps11.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/pmic/s2mps11.c b/drivers/power/pmic/s2mps11.c index 6e819579030..23c96da3fdf 100644 --- a/drivers/power/pmic/s2mps11.c +++ b/drivers/power/pmic/s2mps11.c @@ -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, }; |
