]> git.dujemihanovic.xyz Git - u-boot.git/commit
regulator: rk8xx: add indirection level for some ldo callbacks
authorQuentin Schulz <quentin.schulz@theobroma-systems.com>
Thu, 14 Mar 2024 09:36:17 +0000 (10:36 +0100)
committerKever Yang <kever.yang@rock-chips.com>
Thu, 14 Mar 2024 10:19:44 +0000 (18:19 +0800)
commitf047e4ab97629848963c6266bd8d3437491c651d
treec3e14e227224364ae29bf871d83533967d3ea5c2
parentd771597fbbade5c45ca6e0956ec3120b2d9bdce0
regulator: rk8xx: add indirection level for some ldo callbacks

By passing a rk8xx_reg_info directly to the internal get_value, it'd be
possible to call this same function with a logic for getting the
rk8xx_reg_info different from the current get_ldo_reg, e.g. for NLDO and
PLDO support for RK806.

No logic change is expected.

Cc: Quentin Schulz <foss+uboot@0leil.net>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
drivers/power/regulator/rk8xx.c