mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
memstick: add "start" and "stop" methods to memstick device
In some cases it may be desirable to ensure that associated driver is not going to access the media in some period of time. "start" and "stop" methods are provided therefore to allow it. Signed-off-by: Alex Dubov <oakad@yahoo.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
b77899985b
commit
17017d8d2c
3 changed files with 45 additions and 3 deletions
|
@ -263,6 +263,10 @@ struct memstick_dev {
|
|||
/* Get next request from the media driver. */
|
||||
int (*next_request)(struct memstick_dev *card,
|
||||
struct memstick_request **mrq);
|
||||
/* Tell the media driver to stop doing things */
|
||||
void (*stop)(struct memstick_dev *card);
|
||||
/* Allow the media driver to continue */
|
||||
void (*start)(struct memstick_dev *card);
|
||||
|
||||
struct device dev;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue