extern int gb_audio_protocol_init(void);
extern void gb_audio_protocol_exit(void);
+/* __protocol: Pointer to struct gb_protocol */
#define gb_protocol_driver(__protocol) \
static int __init protocol_init(void) \
{ \
} \
module_exit(protocol_exit)
+/* __protocol: string matching name of struct gb_protocol */
+#define gb_gpbridge_protocol_driver(__protocol) \
+int __init gb_##__protocol##_init(void) \
+{ \
+ return gb_protocol_register(&__protocol); \
+} \
+void __exit gb_##__protocol##_exit(void) \
+{ \
+ gb_protocol_deregister(&__protocol); \
+} \
+
/*
* Macro to create get_version() routine for protocols
* @__device: name of the device struct