summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/protocol.h
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-08-11 07:36:15 +0530
committerGreg Kroah-Hartman <gregkh@google.com>2015-08-11 19:34:34 -0700
commitb9938c49131f1d2c65e8783a5a17ff6a96d9ce89 (patch)
tree85b0c815a27777c232c55684b73f1f50b9383e4f /drivers/staging/greybus/protocol.h
parent3ea959e3911e0c9ae49eb855d7b4f744349eb977 (diff)
greybus: protocol: Drop define_get_version support
No more users now, drop it. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/protocol.h')
-rw-r--r--drivers/staging/greybus/protocol.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/drivers/staging/greybus/protocol.h b/drivers/staging/greybus/protocol.h
index 758b36ef1f55..45606adacf35 100644
--- a/drivers/staging/greybus/protocol.h
+++ b/drivers/staging/greybus/protocol.h
@@ -107,27 +107,4 @@ void gb_##__protocol##_exit(void) \
gb_protocol_deregister(&__protocol); \
} \
-/*
- * Macro to create get_version() routine for protocols
- * @__device: name of the device struct
- * @__protocol: name of protocol in CAPITALS
- */
-#define define_get_version(__device, __protocol) \
-static int get_version(struct __device *dev) \
-{ \
- struct gb_protocol_version_response response; \
- int retval; \
- \
- retval = gb_protocol_get_version(dev->connection, \
- GB_##__protocol##_TYPE_PROTOCOL_VERSION,\
- NULL, 0, &response, \
- GB_##__protocol##_VERSION_MAJOR); \
- if (retval) \
- return retval; \
- \
- dev->version_major = response.major; \
- dev->version_minor = response.minor; \
- return 0; \
-}
-
#endif /* __PROTOCOL_H */