greybus: initial framework for ES1 usb AP driver
authorGreg Kroah-Hartman <greg@kroah.com>
Sun, 31 Aug 2014 00:06:54 +0000 (17:06 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Sun, 31 Aug 2014 00:06:54 +0000 (17:06 -0700)
drivers/staging/greybus/Makefile
drivers/staging/greybus/es1-ap-usb.c [new file with mode: 0644]

index 74d4124..29ba1da 100644 (file)
@@ -1,6 +1,7 @@
 greybus-y := core.o gbuf.o i2c-gb.o gpio-gb.o sdio-gb.o uart-gb.o
 
 obj-m += greybus.o
+obj-m += es1-ap-usb.o
 
 KERNELVER              ?= $(shell uname -r)
 KERNELDIR              ?= /lib/modules/$(KERNELVER)/build
diff --git a/drivers/staging/greybus/es1-ap-usb.c b/drivers/staging/greybus/es1-ap-usb.c
new file mode 100644 (file)
index 0000000..05c7248
--- /dev/null
@@ -0,0 +1,45 @@
+/*
+ * Greybus "AP" USB driver
+ *
+ * Copyright 2014 Google Inc.
+ *
+ * Released under the GPLv2 only.
+ */
+#include <linux/kernel.h>
+#include <linux/module.h>
+#include <linux/slab.h>
+#include <linux/errno.h>
+#include <linux/usb.h>
+
+
+static const struct usb_device_id id_table[] = {
+       { USB_DEVICE(0x0000, 0x0000) },         // FIXME
+       { },
+};
+MODULE_DEVICE_TABLE(usb, id_table);
+
+
+static int ap_probe(struct usb_interface *interface,
+                   const struct usb_device_id *id)
+{
+
+       return 0;
+}
+
+static void ap_disconnect(struct usb_interface *interface)
+{
+
+
+}
+
+static struct usb_driver es1_ap_driver = {
+       .name =         "es1_ap_driver",
+       .probe =        ap_probe,
+       .disconnect =   ap_disconnect,
+       .id_table =     id_table,
+};
+
+module_usb_driver(es1_ap_driver);
+
+MODULE_LICENSE("GPL");
+MODULE_AUTHOR("Greg Kroah-Hartman <gregkh@linuxfoundation.org>");