Commit bafe3f67 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

greybus: connection: drop protocol parameter from static interface

Drop legacy protocol parameter from static connection interface.
Reviewed-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent d6fba3db
...@@ -217,11 +217,9 @@ gb_connection_create(struct gb_host_device *hd, int hd_cport_id, ...@@ -217,11 +217,9 @@ gb_connection_create(struct gb_host_device *hd, int hd_cport_id,
} }
struct gb_connection * struct gb_connection *
gb_connection_create_static(struct gb_host_device *hd, gb_connection_create_static(struct gb_host_device *hd, u16 hd_cport_id)
u16 hd_cport_id, u8 protocol_id)
{ {
return gb_connection_create(hd, hd_cport_id, NULL, NULL, 0, return gb_connection_create(hd, hd_cport_id, NULL, NULL, 0, 0);
protocol_id);
} }
struct gb_connection * struct gb_connection *
......
...@@ -56,7 +56,7 @@ struct gb_connection { ...@@ -56,7 +56,7 @@ struct gb_connection {
}; };
struct gb_connection *gb_connection_create_static(struct gb_host_device *hd, 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_connection *gb_connection_create_dynamic(struct gb_interface *intf,
struct gb_bundle *bundle, u16 cport_id, struct gb_bundle *bundle, u16 cport_id,
u8 protocol_id); u8 protocol_id);
......
...@@ -895,8 +895,7 @@ struct gb_svc *gb_svc_create(struct gb_host_device *hd) ...@@ -895,8 +895,7 @@ struct gb_svc *gb_svc_create(struct gb_host_device *hd)
goto err_put_device; goto err_put_device;
} }
svc->connection = gb_connection_create_static(hd, GB_SVC_CPORT_ID, svc->connection = gb_connection_create_static(hd, GB_SVC_CPORT_ID);
GREYBUS_PROTOCOL_SVC);
if (!svc->connection) { if (!svc->connection) {
dev_err(&svc->dev, "failed to create connection\n"); dev_err(&svc->dev, "failed to create connection\n");
goto err_free_input; goto err_free_input;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment