summaryrefslogtreecommitdiffstats
path: root/drivers/staging/most/core.c
diff options
context:
space:
mode:
authorChristian Gromm <christian.gromm@microchip.com>2019-04-03 15:19:45 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-16 13:24:58 +0200
commitdfee92dd50464cbce3d3df2b1ca3eb6c39fb9467 (patch)
treed2f24eeb2d132cc81a9a05fe81bcf83254f1db45 /drivers/staging/most/core.c
parent2bfde348879a3edc402544b2b432420b929cf959 (diff)
downloadlinux-dfee92dd50464cbce3d3df2b1ca3eb6c39fb9467.tar.bz2
staging: most: change signature of function probe_channel
This patch adds the param argument to the function parameter of the call-back probe_channel. This parameter is needed to configure the channels of an attached device. Signed-off-by: Christian Gromm <christian.gromm@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/most/core.c')
-rw-r--r--drivers/staging/most/core.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/staging/most/core.c b/drivers/staging/most/core.c
index 18936cdb1083..fb19b63f089e 100644
--- a/drivers/staging/most/core.c
+++ b/drivers/staging/most/core.c
@@ -701,6 +701,7 @@ static struct most_channel *get_channel(char *mdev, char *mdev_ch)
static
inline int link_channel_to_component(struct most_channel *c,
struct core_component *comp,
+ char *name,
char *comp_param)
{
int ret;
@@ -714,7 +715,8 @@ inline int link_channel_to_component(struct most_channel *c,
return -ENOSPC;
*comp_ptr = comp;
- ret = comp->probe_channel(c->iface, c->channel_id, &c->cfg, comp_param);
+ ret = comp->probe_channel(c->iface, c->channel_id, &c->cfg, name,
+ comp_param);
if (ret) {
*comp_ptr = NULL;
return ret;
@@ -775,7 +777,7 @@ static ssize_t add_link_store(struct device_driver *drv,
if (!c)
return -ENODEV;
- ret = link_channel_to_component(c, comp, comp_param);
+ ret = link_channel_to_component(c, comp, "name", comp_param);
if (ret)
return ret;
return len;