From: Viresh Kumar Date: Wed, 16 Dec 2015 10:59:29 +0000 (+0530) Subject: greybus: control: Use Macro's instead of direct values for major/minor X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5b22521c895111ca191c82a6573214f995c47709;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Greg Kroah-Hartman --- 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 |