From 7bf1696711c37d829b4663fa4dfce5e35b4d237e Mon Sep 17 00:00:00 2001 From: Aseda Aboagye Date: Wed, 1 Nov 2017 09:59:08 -0700 Subject: chg_ramp: Add charge_is_consuming_full_input_current(). Most boards had an identical implementation for this function, previously known as board_is_consuming_full_charge(). To reduce copy paste, let's just move it to common code. Boards that charge ramp without a battery will have to define their own implementation, but there probably won't be any boards like that in the near future. BUG=None BRANCH=None TEST=make -j buildall Change-Id: Ic99a378ac26dfd35d7d718bf9376eacfa8609166 Signed-off-by: Aseda Aboagye Reviewed-on: https://chromium-review.googlesource.com/748919 Commit-Ready: Aseda Aboagye Tested-by: Aseda Aboagye Reviewed-by: Shawn N --- test/charge_ramp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/charge_ramp.c b/test/charge_ramp.c index e3dce7a860..f6f8bd542e 100644 --- a/test/charge_ramp.c +++ b/test/charge_ramp.c @@ -64,7 +64,7 @@ int usb_charger_ramp_max(int supplier, int sup_curr) return 0; } -int board_is_consuming_full_charge(void) +int charge_is_consuming_full_input_current(void) { return charge_limit_ma <= system_load_current_ma; } -- cgit v1.2.1