summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-06-27 13:36:41 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-06-29 08:22:54 +0000
commita37b8fa0738f6355d7355a04bf9e1fadf379cdb0 (patch)
tree5f37c3659158138d7756d5b7664f2306b1d8f427 /board
parenta6e49676204857ec058c32ea8ff2703d6cd74bff (diff)
downloadchrome-ec-a37b8fa0738f6355d7355a04bf9e1fadf379cdb0.tar.gz
board/ghost/charger.c: Format with clang-format
BUG=b:236386294 BRANCH=none TEST=none Change-Id: I068e680b52f8f783b3a0f0371811d2e9159aa0c9 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3728403 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'board')
-rw-r--r--board/ghost/charger.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/board/ghost/charger.c b/board/ghost/charger.c
index 6e14119a77..ad47ee74bc 100644
--- a/board/ghost/charger.c
+++ b/board/ghost/charger.c
@@ -15,9 +15,8 @@
#include "usb_pd.h"
#include "util.h"
-
-#define CPRINTSUSB(format, args...) cprints(CC_USBCHARGE, format, ## args)
-#define CPRINTFUSB(format, args...) cprintf(CC_USBCHARGE, format, ## args)
+#define CPRINTSUSB(format, args...) cprints(CC_USBCHARGE, format, ##args)
+#define CPRINTFUSB(format, args...) cprintf(CC_USBCHARGE, format, ##args)
#ifndef CONFIG_ZEPHYR
/* Charger Chip Configuration */
@@ -86,7 +85,6 @@ int board_set_active_charge_port(int port)
__overridable void board_set_charge_limit(int port, int supplier, int charge_ma,
int max_ma, int charge_mv)
{
- charge_set_input_current_limit(MAX(charge_ma,
- CONFIG_CHARGER_INPUT_CURRENT),
- charge_mv);
+ charge_set_input_current_limit(
+ MAX(charge_ma, CONFIG_CHARGER_INPUT_CURRENT), charge_mv);
}