#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/sizes.h>
#include <linux/uaccess.h>
#include <linux/greybus.h>
struct gb_log { … };
static int gb_log_request_handler(struct gb_operation *op)
{ … }
static int gb_log_probe(struct gb_bundle *bundle,
const struct greybus_bundle_id *id)
{ … }
static void gb_log_disconnect(struct gb_bundle *bundle)
{ … }
static const struct greybus_bundle_id gb_log_id_table[] = …;
MODULE_DEVICE_TABLE(greybus, gb_log_id_table);
static struct greybus_driver gb_log_driver = …;
module_greybus_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;