From 13c8d9cd8a5381a68eb39bfebf2004835ffc0251 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Sun, 14 Sep 2014 12:27:19 -0700 Subject: [PATCH] greybus: add test_sink driver --- drivers/staging/greybus/Makefile | 1 + drivers/staging/greybus/test_sink.c | 38 +++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 drivers/staging/greybus/test_sink.c diff --git a/drivers/staging/greybus/Makefile b/drivers/staging/greybus/Makefile index 0550e219af3d..2e048a010a23 100644 --- a/drivers/staging/greybus/Makefile +++ b/drivers/staging/greybus/Makefile @@ -11,6 +11,7 @@ greybus-y := core.o \ obj-m += greybus.o obj-m += es1-ap-usb.o +obj-m += test_sink.o KERNELVER ?= $(shell uname -r) KERNELDIR ?= /lib/modules/$(KERNELVER)/build diff --git a/drivers/staging/greybus/test_sink.c b/drivers/staging/greybus/test_sink.c new file mode 100644 index 000000000000..932c1692a13b --- /dev/null +++ b/drivers/staging/greybus/test_sink.c @@ -0,0 +1,38 @@ +/* + * Test "sink" Greybus driver. + * + * Copyright 2014 Google Inc. + * + * Released under the GPLv2 only. + */ + +#include +#include +#include +#include "greybus.h" + +struct test_device { + struct greybus_device *gdev; +}; + +int gb_register_cport_complete(struct greybus_device *gdev, + gbuf_complete_t handler, int cport, + void *context); +void gb_deregister_cport_complete(int cport); + + + +static int test_init(void) +{ + return 0; +} + +static void test_exit(void) +{ +} + +module_init(test_init); +module_exit(test_exit); + +MODULE_LICENSE("GPL"); +MODULE_AUTHOR("Greg Kroah-Hartman "); -- 2.39.2