From: Ian Abbott Date: Thu, 4 Apr 2013 13:59:11 +0000 (+0100) Subject: staging: comedi: reduce use of struct comedi_file_info X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~277 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e04c25435e2cf0049def6ab4c28e49494a68dde;p=pandora-kernel.git 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 Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed