diff options
author | Michal Nazarewicz <m.nazarewicz@samsung.com> | 2010-06-21 15:57:09 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-11 01:35:37 +0400 |
commit | 8876f5e7d3b2a320777dd4f6f5301d474c97a06c (patch) | |
tree | 7203196be21e46bef900a2f89e30a769730083f1 /drivers/usb/host/ohci-pnx4008.c | |
parent | 3f3e12d050052032a51f75e72e540322e2a7da2b (diff) | |
download | linux-8876f5e7d3b2a320777dd4f6f5301d474c97a06c.tar.xz |
USB: gadget: f_mass_storage: added eject callback
Added pre_eject() and post_eject() callbacks which are
called before and after removable logical unit is ejected.
The first can prevent logical unit from being ejected.
This commit also changes the way callbacks are passed to
the function from gadget. A fsg_operations structure has
been created which lists all callbacks -- this is passed
to the fsg_config.
This is important because it changes the way thread_exits()
callback is passed.
Signed-off-by: Michal Nazarewicz <m.nazarewicz@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/ohci-pnx4008.c')
0 files changed, 0 insertions, 0 deletions