aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/u_composite_notifier.c
blob: 62ff62156de6cb93a52f02803da22bc44f0e60ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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);