From: H Hartley Sweeten Date: Wed, 19 Dec 2012 22:34:40 +0000 (-0700) Subject: staging: comedi: comedi_fops: introduce comedi_dev_from_minor() X-Git-Tag: v3.9-rc1~127^2~537 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85104e9b409013c78624b367dec02e6ccc996635;p=pandora-kernel.git staging: comedi: comedi_fops: introduce comedi_dev_from_minor() A number of functions have to call comedi_get_device_file_info() to get the comedi_device_file_info pointer for a given minor. That pointer is only used to get the actual comedi_device pointer for the minor. Introduce a new helper function, comedi_dev_from_minor(), to simplify this operation. This will also allow us to make the comedi_device_file_info struct private. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed