]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
phy: qcom-qmp-combo: Use regulator_bulk_data with init_load_uA for regulator setup
authorFaisal Hassan <faisal.hassan@oss.qualcomm.com>
Mon, 22 Sep 2025 13:59:01 +0000 (19:29 +0530)
committerVinod Koul <vkoul@kernel.org>
Thu, 20 Nov 2025 13:56:30 +0000 (19:26 +0530)
commit81d75558406609f311766a37ec4b2c74d7b11ea0
treef5d7c8e090355fbfc201f293f2734ae7665ade93
parent0d616c28a35ef7525becd48b994fb6fb21f53119
phy: qcom-qmp-combo: Use regulator_bulk_data with init_load_uA for regulator setup

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@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Link: https://patch.msgid.link/20250922135901.2067-1-faisal.hassan@oss.qualcomm.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp-combo.c