summaryrefslogtreecommitdiff
path: root/io-module/mts_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io-module/mts_io.c')
-rw-r--r--io-module/mts_io.c6
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;
}