diff options
author | Christian Gromm <christian.gromm@microchip.com> | 2017-11-21 15:04:55 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-11-27 09:20:35 +0100 |
commit | ec0c2f62ab8cebde7dbe8a3a4780dee280f1a98c (patch) | |
tree | 805e77029513bc8865c0abd8baa06d67e3318bac /drivers/staging/most | |
parent | 3d6eb1d238ee981d2881c8478ed5bd3e948c1eb0 (diff) | |
download | blackbird-obmc-linux-ec0c2f62ab8cebde7dbe8a3a4780dee280f1a98c.tar.gz blackbird-obmc-linux-ec0c2f62ab8cebde7dbe8a3a4780dee280f1a98c.zip |
staging: most: core: rename function
The core module used to have two functions to find a certain
channel. One by name and one by interface. Since no channel is
searched by its interface name anymore the by_name suffix is
rendered redundant. This patch renames the function accordingly.
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/most')
-rw-r--r-- | drivers/staging/most/core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/most/core.c b/drivers/staging/most/core.c index 076d4f2756ff..9ab480914f95 100644 --- a/drivers/staging/most/core.c +++ b/drivers/staging/most/core.c @@ -628,13 +628,13 @@ static int split_string(char *buf, char **a, char **b, char **c, char **d) } /** - * get_channel_by_name - get pointer to channel object + * get_channel - get pointer to channel object * @mdev: name of the device instance * @mdev_ch: name of the respective channel * * This retrieves the pointer to a channel object. */ -static struct most_channel *get_channel_by_name(char *mdev, char *mdev_ch) +static struct most_channel *get_channel(char *mdev, char *mdev_ch) { struct most_channel *c, *tmp; struct most_inst_obj *i, *i_tmp; @@ -734,7 +734,7 @@ static ssize_t add_link_store(struct device_driver *drv, aim_param = devnod_buf; } - c = get_channel_by_name(mdev, mdev_ch); + c = get_channel(mdev, mdev_ch); if (IS_ERR(c)) return -ENODEV; @@ -773,7 +773,7 @@ static ssize_t remove_link_store(struct device_driver *drv, if (ret) return ret; aim = match_module(aim_name); - c = get_channel_by_name(mdev, mdev_ch); + c = get_channel(mdev, mdev_ch); if (IS_ERR(c)) return -ENODEV; |