From 35d3c4f1611576b65b22d1caa329fa7ee1834a82 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 22 Feb 2023 21:01:49 -0700 Subject: [PATCH] Fix style --- src/board/system76/common/peci.c | 4 ++-- src/ec/ite/include/ec/espi.h | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/board/system76/common/peci.c b/src/board/system76/common/peci.c index b5d7301..53a1562 100644 --- a/src/board/system76/common/peci.c +++ b/src/board/system76/common/peci.c @@ -72,7 +72,7 @@ bool peci_available(void) { } // Returns true on success, false on error -bool peci_get_temp(int16_t * data) { +bool peci_get_temp(int16_t *data) { //TODO: Wait for completion? // Clear upstream status ESUCTRL0 = ESUCTRL0; @@ -226,7 +226,7 @@ bool peci_available(void) { } // Returns true on success, false on error -bool peci_get_temp(int16_t * data) { +bool peci_get_temp(int16_t *data) { // Wait for completion while (HOSTAR & 1) {} // Clear status diff --git a/src/ec/ite/include/ec/espi.h b/src/ec/ite/include/ec/espi.h index 1035b9c..25ddb20 100644 --- a/src/ec/ite/include/ec/espi.h +++ b/src/ec/ite/include/ec/espi.h @@ -112,15 +112,15 @@ volatile uint8_t __xdata __at(0x31A3) ESGCTRL3; // Upstream flags volatile uint8_t __xdata __at(0x31B0) ESUCTRL0; - #define ESUCTRL0_ENABLE BIT(7) - #define ESUCTRL0_GO BIT(6) - #define ESUCTRL0_DONE BIT(1) - #define ESUCTRL0_BUSY BIT(0) +#define ESUCTRL0_ENABLE BIT(7) +#define ESUCTRL0_GO BIT(6) +#define ESUCTRL0_DONE BIT(1) +#define ESUCTRL0_BUSY BIT(0) // Upstream cycle type volatile uint8_t __xdata __at(0x31B1) ESUCTRL1; - // OOB message - #define ESUCTRL1_OOB 0x07 +// OOB message +#define ESUCTRL1_OOB 0x07 // Upstream tag @ [7:4], upstream length [11:8] @ [3:0] volatile uint8_t __xdata __at(0x31B2) ESUCTRL2; @@ -136,7 +136,7 @@ volatile uint8_t __xdata __at(0x31B8) ESUCTRL8; // PUT_OOB status volatile uint8_t __xdata __at(0x31C0) ESOCTRL0; - #define ESOCTRL0_STATUS BIT(7) +#define ESOCTRL0_STATUS BIT(7) volatile uint8_t __xdata __at(0x31C1) ESOCTRL1;