greybus: svc: Use macro's for major/minor numbers

We have already defined macro's for SVC's major/minor numbers, lets use
them.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Viresh Kumar 2015-07-01 12:13:51 +05:30 committed by Greg Kroah-Hartman
parent 7eb8919b0f
commit 06e305f1e3

View file

@ -233,8 +233,8 @@ static void gb_svc_connection_exit(struct gb_connection *connection)
static struct gb_protocol svc_protocol = {
.name = "svc",
.id = GREYBUS_PROTOCOL_SVC,
.major = 0,
.minor = 1,
.major = GB_SVC_VERSION_MAJOR,
.minor = GB_SVC_VERSION_MINOR,
.connection_init = gb_svc_connection_init,
.connection_exit = gb_svc_connection_exit,
.request_recv = gb_svc_request_recv,