diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2022-07-06 11:44:39 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-07-07 04:33:11 +0000 |
commit | f9723aa7ca78d3c71f4c6faa9e6b1a9445eaf4b3 (patch) | |
tree | 14f572d0e464b5a74d782b9bb300b941d51357a5 | |
parent | 6a2ed162a91ab1672ec37c5901ac61b8a5a4b14a (diff) | |
download | chrome-ec-f9723aa7ca78d3c71f4c6faa9e6b1a9445eaf4b3.tar.gz |
driver/nvidia_gpu.h: Format with clang-format
BUG=b:236386294
BRANCH=none
TEST=none
Tricium: disable
Change-Id: Ib1e4882f9bb4b2f8f58bc21869c9a513127bfb7e
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3749474
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
-rw-r--r-- | driver/nvidia_gpu.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/driver/nvidia_gpu.h b/driver/nvidia_gpu.h index 8991ec75c1..5b2e7e1b1d 100644 --- a/driver/nvidia_gpu.h +++ b/driver/nvidia_gpu.h @@ -8,7 +8,7 @@ #ifndef DRIVER_NVIDIA_GPU_H #define DRIVER_NVIDIA_GPU_H -#define NVIDIA_GPU_ACOFF_DURATION (100 * MSEC) +#define NVIDIA_GPU_ACOFF_DURATION (100 * MSEC) enum d_notify_level { D_NOTIFY_1 = 0, @@ -40,18 +40,19 @@ struct d_notify_policy { }; }; -#define AC_ATLEAST_W(W) { \ - .power_source = D_NOTIFY_AC, \ - .ac.min_charger_watts = (W), \ +#define AC_ATLEAST_W(W) \ + { \ + .power_source = D_NOTIFY_AC, .ac.min_charger_watts = (W), \ } -#define AC_DC { \ - .power_source = D_NOTIFY_AC_DC, \ +#define AC_DC \ + { \ + .power_source = D_NOTIFY_AC_DC, \ } -#define DC_ATLEAST_SOC(S) { \ - .power_source = D_NOTIFY_DC, \ - .dc.min_battery_soc = (S), \ +#define DC_ATLEAST_SOC(S) \ + { \ + .power_source = D_NOTIFY_DC, .dc.min_battery_soc = (S), \ } void nvidia_gpu_init_policy(const struct d_notify_policy *policies); |