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>
}
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 *
};
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);
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;