summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/control.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2016-01-21 17:34:12 +0100
committerGreg Kroah-Hartman <gregkh@google.com>2016-01-21 22:45:09 -0800
commit59507e2612379356d93de0bd1d6e0f9a36dca0da (patch)
tree42d5f6491f2aefba379008ed686e71370f1abd2b /drivers/staging/greybus/control.c
parentbafe3f67908c68a0b1fdc527c79cd7d9106abd85 (diff)
downloadlinux-59507e2612379356d93de0bd1d6e0f9a36dca0da.tar.gz
linux-59507e2612379356d93de0bd1d6e0f9a36dca0da.tar.bz2
linux-59507e2612379356d93de0bd1d6e0f9a36dca0da.zip
greybus: connection: add helper to create control connections
Add dedicated helper to create control connections. This will allow us to simplify the generic (dynamic) interface. 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/control.c')
-rw-r--r--drivers/staging/greybus/control.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/greybus/control.c b/drivers/staging/greybus/control.c
index 0e50fd419f3a..a766ec8b0228 100644
--- a/drivers/staging/greybus/control.c
+++ b/drivers/staging/greybus/control.c
@@ -186,9 +186,7 @@ struct gb_control *gb_control_create(struct gb_interface *intf)
if (!control)
return NULL;
- control->connection = gb_connection_create_dynamic(intf, NULL,
- GB_CONTROL_CPORT_ID,
- GREYBUS_PROTOCOL_CONTROL);
+ control->connection = gb_connection_create_control(intf);
if (!control->connection) {
dev_err(&intf->dev, "failed to create control connection\n");
kfree(control);