summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2015-06-16 22:01:21 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-06-18 09:23:07 +0000
commit313623afeea195e64c1ba0faa6887361137ed8c8 (patch)
tree99b97e9b47b349db26be884b6e0421931a63cd80
parent9b9b7f97a6120a296959323f728c51c1ac7a45af (diff)
downloadchrome-ec-313623afeea195e64c1ba0faa6887361137ed8c8.tar.gz
cleanup: Don't shadow NULL with an enum
For the few platforms without gpio.inc, use this enum gpio_signal { GPIO_COUNT }; instead of this enum gpio_signal { NULL }; The only reason this worked at all is that the headers are included in a particular order. BUG=none BRANCH=none TEST=make buildall Signed-off-by: Bill Richardson <wfrichar@chromium.org> Change-Id: I81533f3614d0b4c7389f9edd42cd8ac018581f46 Reviewed-on: https://chromium-review.googlesource.com/278120 Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r--include/gpio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/gpio.h b/include/gpio.h
index 0441ff6096..37abc1eb4b 100644
--- a/include/gpio.h
+++ b/include/gpio.h
@@ -50,7 +50,7 @@
* define an emtpy one here.*/
#ifndef __CROS_EC_GPIO_SIGNAL_H
enum gpio_signal {
- NULL
+ GPIO_COUNT
};
#endif /* __CROS_EC_GPIO_SIGNAL_H */