greybus: connection: drop protocol parameter from static interface
authorJohan Hovold <johan@hovoldconsulting.com>
Thu, 21 Jan 2016 16:34:11 +0000 (17:34 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 22 Jan 2016 06:45:09 +0000 (22:45 -0800)
Drop legacy protocol parameter from static connection 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>
drivers/staging/greybus/connection.c
drivers/staging/greybus/connection.h
drivers/staging/greybus/svc.c

index c92af6e1a11f86c1209aa5629a28a15bb713697c..9b8112bd16a009dffcbd2649ae1d1412703c875e 100644 (file)
@@ -217,11 +217,9 @@ err_unlock:
 }
 
 struct gb_connection *
-gb_connection_create_static(struct gb_host_device *hd,
-                                       u16 hd_cport_id, u8 protocol_id)
+gb_connection_create_static(struct gb_host_device *hd, u16 hd_cport_id)
 {
-       return gb_connection_create(hd, hd_cport_id, NULL, NULL, 0,
-                                                               protocol_id);
+       return gb_connection_create(hd, hd_cport_id, NULL, NULL, 0, 0);
 }
 
 struct gb_connection *
index 66f37b2f4a388c097d53c93f8c05478e033caad1..562bd2b47ac5b238b9fda54c5b324e8bbd32b7e9 100644 (file)
@@ -56,7 +56,7 @@ struct gb_connection {
 };
 
 struct gb_connection *gb_connection_create_static(struct gb_host_device *hd,
-                               u16 hd_cport_id, u8 protocol_id);
+                               u16 hd_cport_id);
 struct gb_connection *gb_connection_create_dynamic(struct gb_interface *intf,
                                struct gb_bundle *bundle, u16 cport_id,
                                u8 protocol_id);
index 8c675d3215e16fb1199401b618f4db8b750b2342..472997e7134326d2afb375a84f5b8148c607b8f2 100644 (file)
@@ -895,8 +895,7 @@ struct gb_svc *gb_svc_create(struct gb_host_device *hd)
                goto err_put_device;
        }
 
-       svc->connection = gb_connection_create_static(hd, GB_SVC_CPORT_ID,
-                                                       GREYBUS_PROTOCOL_SVC);
+       svc->connection = gb_connection_create_static(hd, GB_SVC_CPORT_ID);
        if (!svc->connection) {
                dev_err(&svc->dev, "failed to create connection\n");
                goto err_free_input;