]> git.dujemihanovic.xyz Git - u-boot.git/commit
power: axp: merge separate DLDO functions into 1
authorChen-Yu Tsai <wens@csie.org>
Tue, 12 Jan 2016 06:42:37 +0000 (14:42 +0800)
committerHans de Goede <hdegoede@redhat.com>
Tue, 26 Jan 2016 15:20:05 +0000 (16:20 +0100)
commit3517a27ddb1d12154e263a4f0bf91b4b76c21536
treeadab661007148d024d556fb5d5eef791de3784e0
parentc2caf65da5d15f8e21a4438104360caa8fbb6b7f
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>
board/sunxi/board.c
drivers/power/axp221.c
include/axp_pmic.h