OSDN Git Service

greybus: svc: Use macro's for major/minor numbers
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 1 Jul 2015 06:43:51 +0000 (12:13 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 1 Jul 2015 23:34:55 +0000 (16:34 -0700)
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>
drivers/staging/greybus/svc.c

index cd87045..75b3337 100644 (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,