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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)
{
+4 −0
Original line number Diff line number Diff line
@@ -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)
{
+2 −0
Original line number Diff line number Diff line
@@ -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)