From 313623afeea195e64c1ba0faa6887361137ed8c8 Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Tue, 16 Jun 2015 22:01:21 -0700 Subject: 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 Change-Id: I81533f3614d0b4c7389f9edd42cd8ac018581f46 Reviewed-on: https://chromium-review.googlesource.com/278120 Reviewed-by: Randall Spangler --- include/gpio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- cgit v1.2.1