From 5c4cc2722e38ab5febfb4e31776f1d38b7611f63 Mon Sep 17 00:00:00 2001 From: Michael LeMay Date: Wed, 19 Oct 2016 09:29:37 -0700 Subject: [PATCH] galileo: Shrink pinmux array The pins array in galileo-gen2-pinmux.c:galileo_brd_to_cpu_gpio_pin is unnecessarily large. This patch reduces its size. --- platform/galileo/drivers/galileo-gen2-pinmux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/galileo/drivers/galileo-gen2-pinmux.c b/platform/galileo/drivers/galileo-gen2-pinmux.c index f4ea5be30..37d37cb3e 100644 --- a/platform/galileo/drivers/galileo-gen2-pinmux.c +++ b/platform/galileo/drivers/galileo-gen2-pinmux.c @@ -576,7 +576,7 @@ int galileo_brd_to_cpu_gpio_pin(unsigned pin, bool *sus) { static const int SUS = 0x100; - unsigned pins[GALILEO_NUM_PINS] = { + unsigned pins[GALILEO_NUM_DIGITAL_PINS] = { 3, 4, 5, 6, SUS | 4, 8, 9, SUS | 0, SUS | 1, SUS | 2, 2, SUS | 3,