summaryrefslogtreecommitdiff
path: root/driver/temp_sensor
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2015-06-16 21:51:55 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-06-18 19:07:00 +0000
commit104f811e6730e129a98fac6fc3941bbe0d0e857f (patch)
tree17a0d78af92eceb0cde468f56afc41f0ec726dd9 /driver/temp_sensor
parent19cd951027b7bd7b726e085c46b8cc9c136b0980 (diff)
downloadchrome-ec-104f811e6730e129a98fac6fc3941bbe0d0e857f.tar.gz
cleanup: fix all the header guards
This unifies all the EC header files to use __CROS_EC_FILENAME_H as the include guard. Well, except for test/ util/ and extra/ which use __TEST_ __UTIL_ and __EXTRA_ prefixes respectively. BUG=chromium:496895 BRANCH=none TEST=make buildall -j Signed-off-by: Bill Richardson <wfrichar@chromium.org> Change-Id: Iea71b3a08bdec94a11239de810a2b2e152b15029 Reviewed-on: https://chromium-review.googlesource.com/278121 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'driver/temp_sensor')
-rw-r--r--driver/temp_sensor/g781.h6
-rw-r--r--driver/temp_sensor/tmp432.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/driver/temp_sensor/g781.h b/driver/temp_sensor/g781.h
index 6463155659..c9069749d2 100644
--- a/driver/temp_sensor/g781.h
+++ b/driver/temp_sensor/g781.h
@@ -5,8 +5,8 @@
/* G781 temperature sensor module for Chrome EC */
-#ifndef __CROS_EC_TEMP_SENSOR_G781_H
-#define __CROS_EC_TEMP_SENSOR_G781_H
+#ifndef __CROS_EC_G781_H
+#define __CROS_EC_G781_H
#define G781_I2C_ADDR 0x98 /* 7-bit address is 0x4C */
@@ -67,4 +67,4 @@
*/
int g781_get_val(int idx, int *temp_ptr);
-#endif /* __CROS_EC_TEMP_SENSOR_G781_H */
+#endif /* __CROS_EC_G781_H */
diff --git a/driver/temp_sensor/tmp432.h b/driver/temp_sensor/tmp432.h
index acfaf39503..94930ee108 100644
--- a/driver/temp_sensor/tmp432.h
+++ b/driver/temp_sensor/tmp432.h
@@ -5,8 +5,8 @@
/* TMP432 temperature sensor module for Chrome EC */
-#ifndef __CROS_EC_TEMP_SENSOR_TMP432_H
-#define __CROS_EC_TEMP_SENSOR_TMP432_H
+#ifndef __CROS_EC_TMP432_H
+#define __CROS_EC_TMP432_H
#define TMP432_I2C_ADDR 0x98 /* 7-bit address is 0x4C */
@@ -93,4 +93,4 @@
*/
int tmp432_get_val(int idx, int *temp_ptr);
-#endif /* __CROS_EC_TEMP_SENSOR_TMP432_H */
+#endif /* __CROS_EC_TMP432_H */