summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Gromm <christian.gromm@microchip.com>2017-11-21 15:05:02 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-27 09:20:36 +0100
commit81ce26b7c4553496b10083b975f1560059c8d747 (patch)
treef73e698a75aeacc6a1645168ddccdcc63b34158b
parented021a0f8e5b1ac2966a997e908c6a7824da6baa (diff)
staging: most: core: rename mod_list
This patch renames the variable mod_list to comp_list. It is needed because modules that interface userspace are referred to as components. Signed-off-by: Christian Gromm <christian.gromm@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/most/core.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/most/core.c b/drivers/staging/most/core.c
index dd6cebf88e59..c5b809b50247 100644
--- a/drivers/staging/most/core.c
+++ b/drivers/staging/most/core.c
@@ -34,7 +34,7 @@ static struct mostcore {
struct device_driver drv;
struct bus_type bus;
struct class *class;
- struct list_head mod_list;
+ struct list_head comp_list;
} mc;
#define to_driver(d) container_of(d, struct mostcore, drv);
@@ -535,7 +535,7 @@ static struct core_component *match_module(char *name)
{
struct core_component *aim;
- list_for_each_entry(aim, &mc.mod_list, list) {
+ list_for_each_entry(aim, &mc.comp_list, list) {
if (!strcmp(aim->name, name))
return aim;
}
@@ -581,7 +581,7 @@ static ssize_t modules_show(struct device_driver *drv, char *buf)
struct core_component *aim;
int offs = 0;
- list_for_each_entry(aim, &mc.mod_list, list) {
+ list_for_each_entry(aim, &mc.comp_list, list) {
offs += snprintf(buf + offs, PAGE_SIZE - offs, "%s\n",
aim->name);
}
@@ -1309,7 +1309,7 @@ int most_register_component(struct core_component *aim)
pr_err("Bad driver\n");
return -EINVAL;
}
- list_add_tail(&aim->list, &mc.mod_list);
+ list_add_tail(&aim->list, &mc.comp_list);
pr_info("registered new application interfacing module %s\n", aim->name);
return 0;
}
@@ -1559,7 +1559,7 @@ static int __init most_init(void)
int err;
pr_info("init()\n");
- INIT_LIST_HEAD(&mc.mod_list);
+ INIT_LIST_HEAD(&mc.comp_list);
ida_init(&mdev_id);
mc.bus.name = "most",