diff options
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) { |