diff options
author | John Klug <john.klug@multitech.com> | 2016-09-30 17:22:00 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2016-09-30 17:22:00 -0500 |
commit | cf9e2ae0c4193f784138e098c929a36a9aaa8854 (patch) | |
tree | a9b66d291b8d852c4e5ed71b709fdabe7d154322 /io-module/mtac_gpiob.c | |
parent | 670c959a9bdfd4aaae25a6d0c30e31d29b6761de (diff) | |
download | mts-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.c | 6 |
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) |