summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/usb.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-08-08 10:25:40 +0530
committerGreg Kroah-Hartman <gregkh@google.com>2015-08-10 17:40:46 -0700
commitf514b5c31435909960fe32e309d7417c52629cc1 (patch)
tree9669e5aeff443a13d5be0ed8636e4e4fd09588b9 /drivers/staging/greybus/usb.c
parent9475fb5c5ad1d61a37c2bd47fb94dcf55b59aaf2 (diff)
greybus: usb: Use (already defined) major/minor macros
We already have macros for these, use them instead of writing fixed values. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/usb.c')
-rw-r--r--drivers/staging/greybus/usb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/greybus/usb.c b/drivers/staging/greybus/usb.c
index 50173b96f712..80c42b20adda 100644
--- a/drivers/staging/greybus/usb.c
+++ b/drivers/staging/greybus/usb.c
@@ -226,8 +226,8 @@ static void gb_usb_connection_exit(struct gb_connection *connection)
static struct gb_protocol usb_protocol = {
.name = "usb",
.id = GREYBUS_PROTOCOL_USB,
- .major = 0,
- .minor = 1,
+ .major = GB_USB_VERSION_MAJOR,
+ .minor = GB_USB_VERSION_MINOR,
.connection_init = gb_usb_connection_init,
.connection_exit = gb_usb_connection_exit,
.request_recv = NULL, /* FIXME we have requests!!! */