diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2022-07-06 11:44:35 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-07-07 04:48:59 +0000 |
commit | 167c8bbf0baca287be8cfe96168edafce5b89b2e (patch) | |
tree | 1aa79337808210633f379d2552df9171bc989bc3 /driver/nvidia_gpu.c | |
parent | 23afa0a0729e897a6736451aad25eded04b472f2 (diff) | |
download | chrome-ec-167c8bbf0baca287be8cfe96168edafce5b89b2e.tar.gz |
driver/nvidia_gpu.c: Format with clang-format
BUG=b:236386294
BRANCH=none
TEST=none
Tricium: disable
Change-Id: Ic41b7577195397317ced3993d0680279f12d57b1
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3749473
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'driver/nvidia_gpu.c')
-rw-r--r-- | driver/nvidia_gpu.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/driver/nvidia_gpu.c b/driver/nvidia_gpu.c index f549a03448..764a488ac8 100644 --- a/driver/nvidia_gpu.c +++ b/driver/nvidia_gpu.c @@ -19,8 +19,8 @@ #include "throttle_ap.h" #include "timer.h" -#define CPRINTS(fmt, args...) cprints(CC_GPU, "GPU: " fmt, ## args) -#define CPRINTF(fmt, args...) cprintf(CC_GPU, "GPU: " fmt, ## args) +#define CPRINTS(fmt, args...) cprints(CC_GPU, "GPU: " fmt, ##args) +#define CPRINTF(fmt, args...) cprintf(CC_GPU, "GPU: " fmt, ##args) test_export_static enum d_notify_level d_notify_level = D_NOTIFY_1; test_export_static bool policy_initialized = false; @@ -54,8 +54,8 @@ static void set_d_notify_level(enum d_notify_level level) return; d_notify_level = level; - *memmap_gpu = (*memmap_gpu & ~EC_MEMMAP_GPU_D_NOTIFY_MASK) - | d_notify_level; + *memmap_gpu = (*memmap_gpu & ~EC_MEMMAP_GPU_D_NOTIFY_MASK) | + d_notify_level; host_set_single_event(EC_HOST_EVENT_GPU); CPRINTS("Set D-notify level to D%c", ('1' + (int)d_notify_level)); } @@ -139,8 +139,8 @@ DECLARE_HOOK(HOOK_BATTERY_SOC_CHANGE, handle_battery_soc_change, * is called whenever (and prior to) active port or active supplier or both * changes. */ -void throttle_gpu(enum throttle_level level, - enum throttle_type type, /* not used */ +void throttle_gpu(enum throttle_level level, enum throttle_type type, /* not + used */ enum throttle_sources source) { if (level == THROTTLE_ON) { |