Re: [PATCH v3 2/4] regulator: qcom_usb_vbus: add register abstraction and PM8150B support

From: Dmitry Baryshkov

Date: Mon Jul 06 2026 - 11:26:24 EST


On Mon, Jul 06, 2026 at 06:01:06PM +0530, Rakesh Kota wrote:
> Introduce per-compatible regulator descriptor data via struct
> qcom_usb_vbus_reg_data to abstract register layout differences between
> PMICs. This allows the probe function to dynamically populate the
> regulator_desc fields rather than relying on compile-time constants.
>
> Refactor the existing PM8150B support to use this abstraction, wiring in
> its CMD_OTG, OTG_CFG, and current-limit registers through pm8150b_data.
> No functional change is intended for PM8150B.
>
> Signed-off-by: Rakesh Kota <rakesh.kota@xxxxxxxxxxxxxxxx>
> ---
> drivers/regulator/qcom_usb_vbus-regulator.c | 71 +++++++++++++++++++++++------
> 1 file changed, 57 insertions(+), 14 deletions(-)
>

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxxxxxxxx>


--
With best wishes
Dmitry