diff options
author | Aaron Massey <aaronmassey@google.com> | 2022-11-01 11:58:08 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-11-02 20:29:32 +0000 |
commit | adba8609c1a6817fe5a03378585729ee7ef6327d (patch) | |
tree | b52df025bf9850ba84fde642d7623bc0c829fd85 | |
parent | 41948753c41c3807aab97106e97a5df316349e3a (diff) | |
download | chrome-ec-adba8609c1a6817fe5a03378585729ee7ef6327d.tar.gz |
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 <aaronmassey@google.com>
Change-Id: I406e92d16c9d9e539d1891bad1e87a96a4d4db2b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3995818
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
-rw-r--r-- | common/dps.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |