diff options
author | Michal Nazarewicz <m.nazarewicz@samsung.com> | 2010-06-21 13:57:09 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-10 14:35:37 -0700 |
commit | 8876f5e7d3b2a320777dd4f6f5301d474c97a06c (patch) | |
tree | 7203196be21e46bef900a2f89e30a769730083f1 /drivers/power | |
parent | 3f3e12d050052032a51f75e72e540322e2a7da2b (diff) |
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/power')
0 files changed, 0 insertions, 0 deletions