diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-12-16 16:29:29 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-12-22 18:20:39 -0800 |
commit | 5b22521c895111ca191c82a6573214f995c47709 (patch) | |
tree | f9cd33014a052a0978d04ddeef6aebd649628b98 /drivers/staging/greybus/control.c | |
parent | 166f0aed325f7bcb7c1ee8c2665d5cb05d36d931 (diff) |
greybus: control: Use Macro's instead of direct values for major/minor
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>
Diffstat (limited to 'drivers/staging/greybus/control.c')
-rw-r--r-- | drivers/staging/greybus/control.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/greybus/control.c b/drivers/staging/greybus/control.c index 9c282e40142b..09ff79753313 100644 --- a/drivers/staging/greybus/control.c +++ b/drivers/staging/greybus/control.c @@ -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 | |