diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2016-01-21 17:34:14 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-01-21 22:45:09 -0800 |
commit | 8cff6c6473db471d7da9dd6dfbfcebdc4d617aa8 (patch) | |
tree | cae85363a114e7952273f792033186b604d41ff7 /drivers/staging/greybus/connection.c | |
parent | e4c16f8b034047096187a9a9b49035ff5dbc8478 (diff) |
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.c | 6 |
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); |