aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/u_composite_notifier.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/u_composite_notifier.c')
-rw-r--r--drivers/usb/gadget/u_composite_notifier.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/drivers/usb/gadget/u_composite_notifier.c b/drivers/usb/gadget/u_composite_notifier.c
new file mode 100644
index 0000000..62ff621
--- /dev/null
+++ b/drivers/usb/gadget/u_composite_notifier.c
@@ -0,0 +1,40 @@
+/*
+ * File Name : u_composite_notifier.c
+ *
+ * Copyright (C) 2012 Samsung Electronics
+ *
+ * This software is licensed under the terms of the GNU General Public
+ * License version 2, as published by the Free Software Foundation, and
+ * may be copied, distributed, and modified under those terms.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ */
+static char function_lists_string[256];
+
+static BLOCKING_NOTIFIER_HEAD(usb_composite_notifier_list);
+
+int register_usb_composite_notifier(struct notifier_block *notifier)
+{
+ int retval;
+
+ retval = blocking_notifier_chain_register(
+ &usb_composite_notifier_list, notifier);
+
+ return retval;
+}
+EXPORT_SYMBOL(register_usb_composite_notifier);
+
+int unregister_usb_composite_notifier(struct notifier_block *notifier)
+{
+ int retval;
+
+ retval = blocking_notifier_chain_unregister(
+ &usb_composite_notifier_list, notifier);
+
+ return retval;
+}
+EXPORT_SYMBOL(unregister_usb_composite_notifier);