Commit df469a94 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

greybus: export needed symbols for protocols

Protocol handlers need some greybus symbols, so export them so that they
can be built outside of the greybus core.
Reviewed-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 7c7d5b9a
......@@ -243,6 +243,7 @@ void gb_connection_err(struct gb_connection *connection, const char *fmt, ...)
va_end(args);
}
EXPORT_SYMBOL_GPL(gb_connection_err);
int gb_connection_init(struct gb_connection *connection)
{
......
......@@ -567,6 +567,7 @@ struct gb_operation *gb_operation_create(struct gb_connection *connection,
return gb_operation_create_common(connection, type,
request_size, response_size);
}
EXPORT_SYMBOL_GPL(gb_operation_create);
static struct gb_operation *
gb_operation_create_incoming(struct gb_connection *connection, u16 id,
......@@ -623,6 +624,7 @@ void gb_operation_put(struct gb_operation *operation)
if (!WARN_ON(!operation))
kref_put(&operation->kref, _gb_operation_destroy);
}
EXPORT_SYMBOL_GPL(gb_operation_put);
/* Tell the requester we're done */
static void gb_operation_sync_callback(struct gb_operation *operation)
......@@ -710,6 +712,7 @@ int gb_operation_request_send_sync(struct gb_operation *operation)
return gb_operation_result(operation);
}
EXPORT_SYMBOL_GPL(gb_operation_request_send_sync);
/*
* Send a response for an incoming operation request. A non-zero
......@@ -958,6 +961,7 @@ int gb_operation_sync(struct gb_connection *connection, int type,
return ret;
}
EXPORT_SYMBOL_GPL(gb_operation_sync);
int gb_operation_init(void)
{
......
......@@ -86,6 +86,7 @@ int gb_protocol_register(struct gb_protocol *protocol)
return 0;
}
EXPORT_SYMBOL_GPL(gb_protocol_register);
/*
* De-register a previously registered protocol.
......@@ -117,6 +118,7 @@ int gb_protocol_deregister(struct gb_protocol *protocol)
return protocol && !protocol_count;
}
EXPORT_SYMBOL_GPL(gb_protocol_deregister);
/* Returns the requested protocol if available, or a null pointer */
struct gb_protocol *gb_protocol_get(u8 id, u8 major, u8 minor)
......
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