From 4d5adcac8735a6533fbe656711d6cbd7710f519e Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Wed, 24 Feb 2016 16:50:21 -0800 Subject: Cr50: Cleanup some of the GPIO handling code Just a bit of refactoring. This cleans up some macro definitions and error checking, and removes a duplicate list of GPIO signal names. BUG=none BRANCH=none TEST=make buildall, test on Cr50 No functional changes, so nothing new to test. Change-Id: Iecacc5a0b7da02aa9d0b94f171c70f0b73e8edd5 Signed-off-by: Bill Richardson Reviewed-on: https://chromium-review.googlesource.com/329303 Reviewed-by: Vadim Bendebury --- chip/g/gpio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chip/g/gpio.c') diff --git a/chip/g/gpio.c b/chip/g/gpio.c index acb13c74c0..1c264de87c 100644 --- a/chip/g/gpio.c +++ b/chip/g/gpio.c @@ -257,11 +257,11 @@ static void gpio_interrupt(int port) void _gpio0_interrupt(void) { - gpio_interrupt(GPIO_0); + gpio_interrupt(0); } void _gpio1_interrupt(void) { - gpio_interrupt(GPIO_1); + gpio_interrupt(1); } DECLARE_IRQ(GC_IRQNUM_GPIO0_GPIOCOMBINT, _gpio0_interrupt, 1); DECLARE_IRQ(GC_IRQNUM_GPIO1_GPIOCOMBINT, _gpio1_interrupt, 1); -- cgit v1.2.1