diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-08-08 10:25:38 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-08-10 17:40:46 -0700 |
commit | 7549219d4ea0a9d8b78c3819dff8dcdb9db14eb1 (patch) | |
tree | 56085a8591b34c0c8e2bf66273770420365c5d56 /drivers/staging/greybus/spi.c | |
parent | 3fb97e43ba4ab094a72d9b9fe165e476e756c4ed (diff) |
greybus: spi: 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/spi.c')
-rw-r--r-- | drivers/staging/greybus/spi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/greybus/spi.c b/drivers/staging/greybus/spi.c index 306fb074c183..77d6bf0b7f13 100644 --- a/drivers/staging/greybus/spi.c +++ b/drivers/staging/greybus/spi.c @@ -340,8 +340,8 @@ static void gb_spi_connection_exit(struct gb_connection *connection) static struct gb_protocol spi_protocol = { .name = "spi", .id = GREYBUS_PROTOCOL_SPI, - .major = 0, - .minor = 1, + .major = GB_SPI_VERSION_MAJOR, + .minor = GB_SPI_VERSION_MINOR, .connection_init = gb_spi_connection_init, .connection_exit = gb_spi_connection_exit, .request_recv = NULL, |