diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2022-06-27 15:04:46 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-06-28 06:34:58 +0000 |
commit | 7b9b87e0f3663958869c220694e8f3b0b817c555 (patch) | |
tree | db79207d886396695b73c98589580d1422ce70ac /driver/temp_sensor | |
parent | 61a1c226054cbf74488b329a8a237b95fb550752 (diff) | |
download | chrome-ec-7b9b87e0f3663958869c220694e8f3b0b817c555.tar.gz |
driver/temp_sensor/tmp468.h: Format with clang-format
BUG=b:236386294
BRANCH=none
TEST=none
Change-Id: I44ce2aa8158aa538625ca1ad0a6b7d959c6a9092
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3729886
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'driver/temp_sensor')
-rw-r--r-- | driver/temp_sensor/tmp468.h | 135 |
1 files changed, 67 insertions, 68 deletions
diff --git a/driver/temp_sensor/tmp468.h b/driver/temp_sensor/tmp468.h index 59fbd20477..fd8a271ec3 100644 --- a/driver/temp_sensor/tmp468.h +++ b/driver/temp_sensor/tmp468.h @@ -11,73 +11,73 @@ #define TMP468_I2C_ADDR_FLAGS (0x48 | I2C_FLAG_BIG_ENDIAN) #define TMP468_SHIFT1 7 -#define TMP468_LOCAL 0x00 -#define TMP468_REMOTE1 0x01 -#define TMP468_REMOTE2 0x02 -#define TMP468_REMOTE3 0x03 -#define TMP468_REMOTE4 0x04 -#define TMP468_REMOTE5 0x05 -#define TMP468_REMOTE6 0x06 -#define TMP468_REMOTE7 0x07 -#define TMP468_REMOTE8 0x08 - -#define TMP468_SRST 0x20 -#define TMP468_THERM 0x21 -#define TMP468_THERM2 0x22 -#define TMP468_ROPEN 0x23 - -#define TMP468_CONFIGURATION 0x30 -#define TMP468_THERM_HYST 0x38 - -#define TMP468_LOCAL_LOW_LIMIT 0x39 -#define TMP468_LOCAL_HIGH_LIMT 0x3a - -#define TMP468_REMOTE1_OFFSET 0x40 -#define TMP468_REMOTE1_NFACTOR 0x41 -#define TMP468_REMOTE1_LOW_LIMIT 0x41 -#define TMP468_REMOTE1_HIGH_LIMIT 0x42 - -#define TMP468_REMOTE2_OFFSET 0x48 -#define TMP468_REMOTE2_NFACTOR 0x49 -#define TMP468_REMOTE2_LOW_LIMIT 0x4a -#define TMP468_REMOTE2_HIGH_LIMIT 0x4b - -#define TMP468_REMOTE3_OFFSET 0x50 -#define TMP468_REMOTE3_NFACTOR 0x51 -#define TMP468_REMOTE3_LOW_LIMIT 0x52 -#define TMP468_REMOTE3_HIGH_LIMIT 0x53 - -#define TMP468_REMOTE4_OFFSET 0x58 -#define TMP468_REMOTE4_NFACTOR 0x59 -#define TMP468_REMOTE4_LOW_LIMIT 0x59 -#define TMP468_REMOTE4_HIGH_LIMIT 0x5a - -#define TMP468_REMOTE5_OFFSET 0x60 -#define TMP468_REMOTE5_NFACTOR 0x61 -#define TMP468_REMOTE5_LOW_LIMIT 0x62 -#define TMP468_REMOTE5_HIGH_LIMIT 0x63 - -#define TMP468_REMOTE6_OFFSET 0x68 -#define TMP468_REMOTE6_NFACTOR 0x69 -#define TMP468_REMOTE6_LOW_LIMIT 0x6a -#define TMP468_REMOTE6_HIGH_LIMIT 0x6b - -#define TMP468_REMOTE7_OFFSET 0x70 -#define TMP468_REMOTE7_NFACTOR 0x71 -#define TMP468_REMOTE7_LOW_LIMIT 0x72 -#define TMP468_REMOTE7_HIGH_LIMIT 0x73 - -#define TMP468_REMOTE8_OFFSET 0x78 -#define TMP468_REMOTE8_NFACTOR 0x79 -#define TMP468_REMOTE8_LOW_LIMIT 0x7a -#define TMP468_REMOTE8_HIGH_LIMIT 0x7b - -#define TMP468_LOCK 0xc4 - -#define TMP468_DEVICE_ID 0xfd -#define TMP468_MANUFACTURER_ID 0xfe - -#define TMP468_SHUTDOWN BIT(5) +#define TMP468_LOCAL 0x00 +#define TMP468_REMOTE1 0x01 +#define TMP468_REMOTE2 0x02 +#define TMP468_REMOTE3 0x03 +#define TMP468_REMOTE4 0x04 +#define TMP468_REMOTE5 0x05 +#define TMP468_REMOTE6 0x06 +#define TMP468_REMOTE7 0x07 +#define TMP468_REMOTE8 0x08 + +#define TMP468_SRST 0x20 +#define TMP468_THERM 0x21 +#define TMP468_THERM2 0x22 +#define TMP468_ROPEN 0x23 + +#define TMP468_CONFIGURATION 0x30 +#define TMP468_THERM_HYST 0x38 + +#define TMP468_LOCAL_LOW_LIMIT 0x39 +#define TMP468_LOCAL_HIGH_LIMT 0x3a + +#define TMP468_REMOTE1_OFFSET 0x40 +#define TMP468_REMOTE1_NFACTOR 0x41 +#define TMP468_REMOTE1_LOW_LIMIT 0x41 +#define TMP468_REMOTE1_HIGH_LIMIT 0x42 + +#define TMP468_REMOTE2_OFFSET 0x48 +#define TMP468_REMOTE2_NFACTOR 0x49 +#define TMP468_REMOTE2_LOW_LIMIT 0x4a +#define TMP468_REMOTE2_HIGH_LIMIT 0x4b + +#define TMP468_REMOTE3_OFFSET 0x50 +#define TMP468_REMOTE3_NFACTOR 0x51 +#define TMP468_REMOTE3_LOW_LIMIT 0x52 +#define TMP468_REMOTE3_HIGH_LIMIT 0x53 + +#define TMP468_REMOTE4_OFFSET 0x58 +#define TMP468_REMOTE4_NFACTOR 0x59 +#define TMP468_REMOTE4_LOW_LIMIT 0x59 +#define TMP468_REMOTE4_HIGH_LIMIT 0x5a + +#define TMP468_REMOTE5_OFFSET 0x60 +#define TMP468_REMOTE5_NFACTOR 0x61 +#define TMP468_REMOTE5_LOW_LIMIT 0x62 +#define TMP468_REMOTE5_HIGH_LIMIT 0x63 + +#define TMP468_REMOTE6_OFFSET 0x68 +#define TMP468_REMOTE6_NFACTOR 0x69 +#define TMP468_REMOTE6_LOW_LIMIT 0x6a +#define TMP468_REMOTE6_HIGH_LIMIT 0x6b + +#define TMP468_REMOTE7_OFFSET 0x70 +#define TMP468_REMOTE7_NFACTOR 0x71 +#define TMP468_REMOTE7_LOW_LIMIT 0x72 +#define TMP468_REMOTE7_HIGH_LIMIT 0x73 + +#define TMP468_REMOTE8_OFFSET 0x78 +#define TMP468_REMOTE8_NFACTOR 0x79 +#define TMP468_REMOTE8_LOW_LIMIT 0x7a +#define TMP468_REMOTE8_HIGH_LIMIT 0x7b + +#define TMP468_LOCK 0xc4 + +#define TMP468_DEVICE_ID 0xfd +#define TMP468_MANUFACTURER_ID 0xfe + +#define TMP468_SHUTDOWN BIT(5) enum tmp468_channel_id { TMP468_CHANNEL_LOCAL, @@ -101,7 +101,6 @@ enum tmp468_power_state { TMP468_POWER_COUNT }; - /** * Get the last polled value of a sensor. * |