summaryrefslogtreecommitdiff
path: root/io-module/mtac_gpiob.c
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2016-09-30 17:22:00 -0500
committerJohn Klug <john.klug@multitech.com>2016-09-30 17:22:00 -0500
commitcf9e2ae0c4193f784138e098c929a36a9aaa8854 (patch)
treea9b66d291b8d852c4e5ed71b709fdabe7d154322 /io-module/mtac_gpiob.c
parent670c959a9bdfd4aaae25a6d0c30e31d29b6761de (diff)
downloadmts-io-cf9e2ae0c4193f784138e098c929a36a9aaa8854.tar.gz
mts-io-cf9e2ae0c4193f784138e098c929a36a9aaa8854.tar.bz2
mts-io-cf9e2ae0c4193f784138e098c929a36a9aaa8854.zip
mts-io driver for Lora-H and additional resets
Diffstat (limited to 'io-module/mtac_gpiob.c')
-rw-r--r--io-module/mtac_gpiob.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/io-module/mtac_gpiob.c b/io-module/mtac_gpiob.c
index 0485494..3dbd828 100644
--- a/io-module/mtac_gpiob.c
+++ b/io-module/mtac_gpiob.c
@@ -154,7 +154,7 @@ static char* gpiob_gpio_pin_name_by_attr_name(const char* name, int port) {
} else if (! strcmp(name, "reset")) {
return "ap1-reset";
} else {
- log_error("attirbute name [%s] is invalid for GPIOB in port %d", name, port);
+ log_error("attribute name [%s] is invalid for GPIOB in port %d", name, port);
return "";
}
@@ -168,10 +168,12 @@ static char* gpiob_gpio_pin_name_by_attr_name(const char* name, int port) {
} else if (! strcmp(name, "reset")) {
return "ap2-reset";
} else {
- log_error("attirbute name [%s] is invalid for GPIOB in port %d", name, port);
+ log_error("attribute name [%s] is invalid for GPIOB in port %d", name, port);
return "";
}
}
+ log_error("gpiob: Invalid port number");
+ return "";
}
static ssize_t mts_attr_show_ap_din(struct kobject *kobj, struct kobj_attribute *attr, char *buf)