summaryrefslogtreecommitdiff
path: root/include/temp_sensor.h
diff options
context:
space:
mode:
authorDavid Hendricks <dhendrix@chromium.org>2012-02-06 15:36:50 -0800
committerDavid Hendricks <dhendrix@chromium.org>2012-02-06 15:40:23 -0800
commit53c1c20fb8d615992e3c2f76646d6af9492dd18d (patch)
treee64019bcc0d31cd03b3a05f47d67195f60a32a62 /include/temp_sensor.h
parent201de29820168f2ce657bfec90c8830cac55d54f (diff)
downloadchrome-ec-53c1c20fb8d615992e3c2f76646d6af9492dd18d.tar.gz
Additional compilation fix-ups for non-LM4 targets
- Add #ifdef CONFIG_TEMP_SENSOR before #include'ing temp_sensor.h which actually requires temp_sensor_id to be defined. Revert the forward declare used earlier since it is not the correct solution in this case. - Add #ifdef CONFIG_CHARGER before calling charger_init() Signed-off-by: David Hendricks <dhendrix@chromium.org> BUG=None TEST=compiled on both BDS and Discovery Change-Id: I60b7e4ba91eb958b3ad724cc9ffa9a12fe9c3a71
Diffstat (limited to 'include/temp_sensor.h')
-rw-r--r--include/temp_sensor.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/temp_sensor.h b/include/temp_sensor.h
index b5441de01d..df937112e1 100644
--- a/include/temp_sensor.h
+++ b/include/temp_sensor.h
@@ -11,9 +11,6 @@
#include "common.h"
#include "board.h"
-/* forward declaration */
-enum temp_sensor_id;
-
/* "enum temp_sensor_id" must be defined for each board in board.h. */
struct temp_sensor_t {
const char* name;