staging: most: core: remove function get_channel_by_iface
authorChristian Gromm <christian.gromm@microchip.com>
Tue, 21 Nov 2017 14:04:44 +0000 (15:04 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Nov 2017 08:20:34 +0000 (09:20 +0100)
commit14c018a93e8e74310e2e9f9a9e6cb39e7337c44b
tree058f917c53f65fbc8cc4d8b224ca4a7a38638da7
parent4d5f022f3a664ee5987118b754058ff31df03835
staging: most: core: remove function get_channel_by_iface

This patch removes the function get_channel_by_iface that walks a list of
all registered interfaces and returns a pointer to a channel when matched.
Instead the private field of the interface structure is used to directly
access the channel via the id. The patch is needed to remove unnecessary
list traversing.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/core.c