diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2022-06-27 14:55:47 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-07-01 13:40:07 +0000 |
commit | eab66f46fc66c82dab87c62cb2df2f2506268b25 (patch) | |
tree | 71edff23ee9bbe5cb1e186613df8f6b3f682e04c | |
parent | ed900d75e11863e7460506b32b9d06736ecc5b98 (diff) | |
download | chrome-ec-eab66f46fc66c82dab87c62cb2df2f2506268b25.tar.gz |
driver/temp_sensor/amd_r19me4070.c: Format with clang-format
BUG=b:236386294
BRANCH=none
TEST=none
Change-Id: Ifdac222bcf0c7d023d8873c2a29a6462d484e855
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3730102
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
-rw-r--r-- | driver/temp_sensor/amd_r19me4070.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/driver/temp_sensor/amd_r19me4070.c b/driver/temp_sensor/amd_r19me4070.c index b5f4e66d38..afe8741e77 100644 --- a/driver/temp_sensor/amd_r19me4070.c +++ b/driver/temp_sensor/amd_r19me4070.c @@ -13,14 +13,14 @@ #include "amd_r19me4070.h" #include "power.h" -#define CPRINTS(format, args...) cprints(CC_USBCHARGE, format, ## args) -#define CPRINTF(format, args...) cprintf(CC_USBCHARGE, format, ## args) +#define CPRINTS(format, args...) cprints(CC_USBCHARGE, format, ##args) +#define CPRINTF(format, args...) cprintf(CC_USBCHARGE, format, ##args) /* GPU I2C address */ -#define GPU_ADDR_FLAGS 0x0041 +#define GPU_ADDR_FLAGS 0x0041 -#define GPU_INIT_OFFSET 0x01 -#define GPU_TEMPERATURE_OFFSET 0x03 +#define GPU_INIT_OFFSET 0x01 +#define GPU_TEMPERATURE_OFFSET 0x03 static int initialized; /* @@ -34,8 +34,8 @@ static void gpu_init_temp_sensor(void) { int rv; rv = i2c_write_block(I2C_PORT_GPU, GPU_ADDR_FLAGS, GPU_INIT_OFFSET, - gpu_init_write_value, - ARRAY_SIZE(gpu_init_write_value)); + gpu_init_write_value, + ARRAY_SIZE(gpu_init_write_value)); if (rv == EC_SUCCESS) { initialized = 1; return; @@ -64,7 +64,7 @@ int get_temp_R19ME4070(int idx, int *temp_ptr) return EC_ERROR_BUSY; } rv = i2c_read_block(I2C_PORT_GPU, GPU_ADDR_FLAGS, - GPU_TEMPERATURE_OFFSET, reg, ARRAY_SIZE(reg)); + GPU_TEMPERATURE_OFFSET, reg, ARRAY_SIZE(reg)); if (rv) { CPRINTS("read GPU Temperature fail"); *temp_ptr = C_TO_K(0); |