summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/u_eem.h
diff options
context:
space:
mode:
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>2013-05-28 07:15:47 (GMT)
committerFelipe Balbi <balbi@ti.com>2013-06-10 14:57:46 (GMT)
commitb29002a157940752dfed2c488b2011f63f007d71 (patch)
treeca07b354cfb93af8a19613669ce32629a94869f9 /drivers/usb/gadget/u_eem.h
parent9c62ce83e4258bacc459faf57bf2ed83cce6be08 (diff)
downloadlinux-fsl-qoriq-b29002a157940752dfed2c488b2011f63f007d71.tar.xz
usb: gadget: f_eem: convert to new function interface with backward compatibility
Converting eem to the new function interface requires converting the USB eem's function code and its users. This patch converts the f_eem.c to the new function interface. The file is now compiled into a separate usb_f_eem.ko module. The old function interface is provided by means of a preprocessor conditional directives. After all users are converted, the old interface can be removed. Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/u_eem.h')
-rw-r--r--drivers/usb/gadget/u_eem.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/drivers/usb/gadget/u_eem.h b/drivers/usb/gadget/u_eem.h
new file mode 100644
index 0000000..8f432f2
--- /dev/null
+++ b/drivers/usb/gadget/u_eem.h
@@ -0,0 +1,27 @@
+/*
+ * u_eem.h
+ *
+ * Utility definitions for the eem function
+ *
+ * Copyright (c) 2013 Samsung Electronics Co., Ltd.
+ * http://www.samsung.com
+ *
+ * Author: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef U_EEM_H
+#define U_EEM_H
+
+#include <linux/usb/composite.h>
+
+struct f_eem_opts {
+ struct usb_function_instance func_inst;
+ struct net_device *net;
+ bool bound;
+};
+
+#endif /* U_EEM_H */