diff options
author | John Klug <john.klug@multitech.com> | 2018-04-20 15:26:43 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2018-04-20 15:32:40 -0500 |
commit | 24297c1295873ecdb729903aa2f53fe0ec1203d5 (patch) | |
tree | 923f73903033abb2b166fb87808b1dfa3f1d8c9f /io-module/mts_capab.c | |
parent | 90d4811e95b58f5bb0124cd793e7045dc1ff6b3d (diff) | |
download | mts-io-24297c1295873ecdb729903aa2f53fe0ec1203d5.tar.gz mts-io-24297c1295873ecdb729903aa2f53fe0ec1203d5.tar.bz2 mts-io-24297c1295873ecdb729903aa2f53fe0ec1203d5.zip |
Add has-radio flag to mts-io, and remove compiler warnings
Diffstat (limited to 'io-module/mts_capab.c')
-rw-r--r-- | io-module/mts_capab.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/io-module/mts_capab.c b/io-module/mts_capab.c index e4ddb6f..8495d87 100644 --- a/io-module/mts_capab.c +++ b/io-module/mts_capab.c @@ -27,9 +27,10 @@ static struct capab_map_s capabilities_map[] = { { CAPA_LORA, "lora"}, }; -static ssize_t capab_show_value(struct kobject *kobj, struct kobj_attribute *attr, char *buf) { +static ssize_t capab_show_value(struct device *dev, struct device_attribute *at, char *buf) { int i; const int count = sizeof(capabilities_map)/sizeof(capabilities_map[0]); + struct kobj_attribute *attr = (struct kobj_attribute *)at; for (i = 0; i < count; i++) { if (strcmp(capabilities_map[i].name, attr->attr.name) == 0) { |