diff options
| author | Ian Abbott <abbotti@mev.co.uk> | 2013-04-04 14:59:11 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-05 14:33:20 -0700 |
| commit | 5e04c25435e2cf0049def6ab4c28e49494a68dde (patch) | |
| tree | 95cc7363e86b6a2031bfda78c677b57cdeed7219 /tools/perf/scripts/python/syscall-counts.py | |
| parent | da56fdc6cd6ebefb597bbf9f1b30c2b0a39c9f56 (diff) | |
staging: comedi: reduce use of struct comedi_file_info
Since the parameters of `comedi_read_subdevice()` and
`comedi_write_subdevice()` have changed, there is no longer a need to
keep a local variable `struct comedi_file_info *info` hanging around in
the file operation functions and device attribute access functions.
Remove the variable from those function and replace the call sequence
`info = comedi_file_info_from_minor(minor)`, `dev =
comedi_dev_from_file_info(info)` with the simpler `dev =
comedi_dev_from_minor(minor)`.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
