diff options
author | Jesse Gilles <jgilles@multitech.com> | 2012-05-14 11:21:26 -0500 |
---|---|---|
committer | Jesse Gilles <jgilles@multitech.com> | 2012-05-14 11:21:26 -0500 |
commit | 499595b88a549e397230b7967606101128e6db76 (patch) | |
tree | e83af190b275fcbda56433b7f86241bafd7b0549 /io-module | |
parent | 5a9ee2dc4b4d35ada418d027bb95ba1eefd6007c (diff) | |
download | cdp-io-controller-499595b88a549e397230b7967606101128e6db76.tar.gz cdp-io-controller-499595b88a549e397230b7967606101128e6db76.tar.bz2 cdp-io-controller-499595b88a549e397230b7967606101128e6db76.zip |
gpio_pin_by_attr_name: allow empty strings
Diffstat (limited to 'io-module')
-rw-r--r-- | io-module/mts_io.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/io-module/mts_io.c b/io-module/mts_io.c index aa8afa1..8c59303 100644 --- a/io-module/mts_io.c +++ b/io-module/mts_io.c @@ -543,7 +543,7 @@ static struct gpio_pin gpio_pins_en4_0_0[] = { }, { .name = "SERIAL_MODE0", - .attr_name = "serial-mode", + .attr_name = "", .pin = AT91_PIN_PC23, .direction = GPIO_DIR_OUTPUT, .output_value = 0, @@ -551,7 +551,7 @@ static struct gpio_pin gpio_pins_en4_0_0[] = { }, { .name = "SERIAL_MODE2", - .attr_name = "serial-mode", + .attr_name = "", .pin = AT91_PIN_PC24, .direction = GPIO_DIR_OUTPUT, .output_value = 1, @@ -594,7 +594,7 @@ struct gpio_pin *gpio_pin_by_name(const char *name) { struct gpio_pin *gpio_pin_by_attr_name(const char *name) { struct gpio_pin *pin; - for (pin = gpio_pins; *pin->attr_name; pin++) { + for (pin = gpio_pins; pin->attr_name; pin++) { if (!strcmp(pin->attr_name, name)) { return pin; } |