From adba8609c1a6817fe5a03378585729ee7ef6327d Mon Sep 17 00:00:00 2001 From: Aaron Massey Date: Tue, 1 Nov 2022 11:58:08 -0600 Subject: dps: Declare get_efficient_voltage() as static The get_efficient_voltage() function is only used locally to its source. Declare the function static. BRANCH=none BUG=none TEST=twister -i -s zephyr/test/drivers/drivers.default TEST=CQ LOW_COVERAGE_REASON=Zoss sometimes mismarks adding of static Signed-off-by: Aaron Massey Change-Id: I406e92d16c9d9e539d1891bad1e87a96a4d4db2b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3995818 Code-Coverage: Zoss Reviewed-by: Keith Short --- common/dps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/dps.c b/common/dps.c index c5a8ba4045..1950b5a9bd 100644 --- a/common/dps.c +++ b/common/dps.c @@ -231,7 +231,7 @@ static int get_battery_target_voltage(int *target_mv) * * @return 0 if error occurs, else battery efficient voltage in mV */ -int get_efficient_voltage(void) +static int get_efficient_voltage(void) { int eff_mv = 0; int batt_mv; -- cgit v1.2.1