[PATCH] phy: qcom-qmp-combo: Use regulator_bulk_data with init_load_uA for regulator setup
Dmitry Baryshkov
dmitry.baryshkov at oss.qualcomm.com
Mon Sep 22 16:42:06 PDT 2025
On Mon, Sep 22, 2025 at 07:29:01PM +0530, Faisal Hassan wrote:
> Replace the custom qmp_regulator_data structure with the standard
> regulator_bulk_data and use the init_load_uA field to set regulator
> load during initialization.
>
> This change simplifies the regulator setup by removing manual
> allocation and load configuration logic, and leverages
> devm_regulator_bulk_get_const() to automatically apply load settings
> before enabling regulators.
>
> Signed-off-by: Faisal Hassan <faisal.hassan at oss.qualcomm.com>
> ---
> drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 49 +++--------------------
> 1 file changed, 6 insertions(+), 43 deletions(-)
>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov at oss.qualcomm.com>
--
With best wishes
Dmitry
More information about the linux-phy
mailing list