diff options
| author | Ian Abbott <abbotti@mev.co.uk> | 2013-11-08 15:03:40 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-11-11 16:16:45 -0800 |
| commit | e5d670dcb7b336fb0c2fcff29ce87892e492e6b3 (patch) | |
| tree | 1328f3ad28152c4ff4845aec98dfd590dfa041df /include/linux/dynamic_queue_limits.h | |
| parent | 69e2387f3bfd408c7fb6c0d14b83d792f67ed638 (diff) | |
staging: comedi: use file->private_data in file operations
Since the `struct comedi_device` should now be protected from being
freed while an open file object is using it, use the `private_data`
member of the `struct file` to point to it. Set it in `comedi_open()`
and use it in the other file operation handlers instead of calling
`comedi_dev_from_minor()` and checking the result.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/dynamic_queue_limits.h')
0 files changed, 0 insertions, 0 deletions
