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 16:17:36 -0500 |
commit | 439f03b0c397ce4c2998f9be185b193cfcbc4fff (patch) | |
tree | 923f73903033abb2b166fb87808b1dfa3f1d8c9f /io-module/mts_capab.c | |
parent | b3cfb538d0897de1621ea321a7122fab4cd51051 (diff) | |
download | mts-io-439f03b0c397ce4c2998f9be185b193cfcbc4fff.tar.gz mts-io-439f03b0c397ce4c2998f9be185b193cfcbc4fff.tar.bz2 mts-io-439f03b0c397ce4c2998f9be185b193cfcbc4fff.zip |
Add has-radio flag to mts-io, and remove compiler warnings2.0.1
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) { |