aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/connection.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2016-01-21 17:34:14 +0100
committerGreg Kroah-Hartman <gregkh@google.com>2016-01-21 22:45:09 -0800
commit8cff6c6473db471d7da9dd6dfbfcebdc4d617aa8 (patch)
treecae85363a114e7952273f792033186b604d41ff7 /drivers/staging/greybus/connection.c
parentgreybus: connection: drop the legacy protocol-id parameter (diff)
downloadlinux-dev-8cff6c6473db471d7da9dd6dfbfcebdc4d617aa8.tar.xz
linux-dev-8cff6c6473db471d7da9dd6dfbfcebdc4d617aa8.zip
greybus: connection: simplify connection-creation interface
Simplify the exported generic interface for creating dynamic connections. Since all driver connections will have a bundle we can drop the redundant interface parameter. Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/connection.c')
-rw-r--r--drivers/staging/greybus/connection.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/greybus/connection.c b/drivers/staging/greybus/connection.c
index 8c7f2eac7323..227bfe8ba341 100644
--- a/drivers/staging/greybus/connection.c
+++ b/drivers/staging/greybus/connection.c
@@ -225,10 +225,10 @@ gb_connection_create_control(struct gb_interface *intf)
}
struct gb_connection *
-gb_connection_create_dynamic(struct gb_interface *intf,
- struct gb_bundle *bundle,
- u16 cport_id)
+gb_connection_create_dynamic(struct gb_bundle *bundle, u16 cport_id)
{
+ struct gb_interface *intf = bundle->intf;
+
return gb_connection_create(intf->hd, -1, intf, bundle, cport_id);
}
EXPORT_SYMBOL_GPL(gb_connection_create_dynamic);