summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-07-06 11:43:51 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-07-07 04:42:09 +0000
commit51c9837902b548b69640b8341114dfac645fe031 (patch)
treea183b2b67a17999056740aa2dc3e227d52fd9ec1 /common
parent7fff012b3c13c4e428f0e1f10c041c24ea6c715a (diff)
downloadchrome-ec-51c9837902b548b69640b8341114dfac645fe031.tar.gz
common/charge_state_v2.c: Format with clang-format
BUG=b:236386294 BRANCH=none TEST=none Tricium: disable Change-Id: I25e137f48e8e285dda78f104ad09f7b4806a8f7f Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3749465 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/charge_state_v2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/charge_state_v2.c b/common/charge_state_v2.c
index ba46a4f194..957ecd3455 100644
--- a/common/charge_state_v2.c
+++ b/common/charge_state_v2.c
@@ -992,8 +992,8 @@ static int charge_request(int voltage, int current)
* from nvdc + chrg will be done separately.
*/
should_bypass = board_should_charger_bypass();
- if ((should_bypass && !(curr.chg.status & CHARGER_BYPASS_MODE))
- || (!should_bypass && (curr.chg.status & CHARGER_BYPASS_MODE)))
+ if ((should_bypass && !(curr.chg.status & CHARGER_BYPASS_MODE)) ||
+ (!should_bypass && (curr.chg.status & CHARGER_BYPASS_MODE)))
charger_enable_bypass_mode(0, should_bypass);
/*