mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-13 16:56:00 +07:00
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>
This commit is contained in:
parent
3ea959e391
commit
b9938c4913
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user