]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
greybus: control: Use Macro's instead of direct values for major/minor
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 16 Dec 2015 10:59:29 +0000 (16:29 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 23 Dec 2015 02:20:39 +0000 (18:20 -0800)
We already have macro's defined for this, use them.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/control.c

index 9c282e40142bff5dc84d7cc0d0918f12178eca07..09ff79753313a72d330fdbb994a05473fd59c300 100644 (file)
@@ -126,8 +126,8 @@ static void gb_control_connection_exit(struct gb_connection *connection)
 static struct gb_protocol control_protocol = {
        .name                   = "control",
        .id                     = GREYBUS_PROTOCOL_CONTROL,
-       .major                  = 0,
-       .minor                  = 1,
+       .major                  = GB_CONTROL_VERSION_MAJOR,
+       .minor                  = GB_CONTROL_VERSION_MINOR,
        .connection_init        = gb_control_connection_init,
        .connection_exit        = gb_control_connection_exit,
        .flags                  = GB_PROTOCOL_SKIP_CONTROL_CONNECTED |