diff options
author | Chen-Yu Tsai <wens@csie.org> | 2016-01-12 14:42:37 +0800 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2016-01-26 16:20:05 +0100 |
commit | 3517a27ddb1d12154e263a4f0bf91b4b76c21536 (patch) | |
tree | adab661007148d024d556fb5d5eef791de3784e0 /include | |
parent | c2caf65da5d15f8e21a4438104360caa8fbb6b7f (diff) | |
download | u-boot-imx-3517a27ddb1d12154e263a4f0bf91b4b76c21536.zip u-boot-imx-3517a27ddb1d12154e263a4f0bf91b4b76c21536.tar.gz u-boot-imx-3517a27ddb1d12154e263a4f0bf91b4b76c21536.tar.bz2 |
power: axp: merge separate DLDO functions into 1
Instead of one function for each DLDO regulator, make 1 function that
takes an extra "index". Since the control bits for the DLDO regulators
are contiguous, this makes the function very simple. This removes a lot
of duplicate code.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/axp_pmic.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/axp_pmic.h b/include/axp_pmic.h index 3b01c49..0f14683 100644 --- a/include/axp_pmic.h +++ b/include/axp_pmic.h @@ -29,10 +29,7 @@ int axp_set_aldo1(unsigned int mvolt); int axp_set_aldo2(unsigned int mvolt); int axp_set_aldo3(unsigned int mvolt); int axp_set_aldo4(unsigned int mvolt); -int axp_set_dldo1(unsigned int mvolt); -int axp_set_dldo2(unsigned int mvolt); -int axp_set_dldo3(unsigned int mvolt); -int axp_set_dldo4(unsigned int mvolt); +int axp_set_dldo(int dldo_num, unsigned int mvolt); int axp_set_eldo(int eldo_num, unsigned int mvolt); int axp_init(void); int axp_get_sid(unsigned int *sid); |