diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-01-05 10:55:24 -0800 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2012-01-10 10:31:56 -0800 |
commit | 55ffdb465b7cdfb19380c681ae4542d4022a6aa2 (patch) | |
tree | 067a4d1251902480731dfc131afe335402311e67 /chip/lm4/gpio.c | |
parent | edc50a42959ab4a862dcd3b1b9c8b409e23383ea (diff) | |
download | chrome-ec-55ffdb465b7cdfb19380c681ae4542d4022a6aa2.tar.gz |
Clean up labels and TODOs
Signed-off-by: Randall Spangler <rspangler@chromium.org>
BUG=none
TEST=none
Change-Id: I8d6e99b3e2b60d32ea3719468590b055e692a67e
Diffstat (limited to 'chip/lm4/gpio.c')
-rw-r--r-- | chip/lm4/gpio.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/chip/lm4/gpio.c b/chip/lm4/gpio.c index b39fbaac48..9a6e8429bf 100644 --- a/chip/lm4/gpio.c +++ b/chip/lm4/gpio.c @@ -154,7 +154,7 @@ int gpio_pre_init(void) LM4_SYSTEM_RCGCGPIO |= 0x0001; /* Turn off the LED before we make it an output */ - gpio_set(EC_GPIO_DEBUG_LED, 0); + gpio_set_level(EC_GPIO_DEBUG_LED, 0); /* Clear GPIOAFSEL bits for block A pin 7 */ LM4_GPIO_AFSEL(LM4_GPIO_A) &= ~(0x80); @@ -223,19 +223,18 @@ int gpio_init(void) } -int gpio_get(enum gpio_signal signal, int *value_ptr) +int gpio_get_level(enum gpio_signal signal) { switch (signal) { case EC_GPIO_DEBUG_LED: - *value_ptr = (LM4_GPIO_DATA(LM4_GPIO_A, 0x80) & 0x80 ? 1 : 0); - return EC_SUCCESS; + return LM4_GPIO_DATA(LM4_GPIO_A, 0x80) & 0x80 ? 1 : 0; default: - return EC_ERROR_UNKNOWN; + return 0; } } -int gpio_set(enum gpio_signal signal, int value) +int gpio_set_level(enum gpio_signal signal, int value) { switch (signal) { case EC_GPIO_DEBUG_LED: |