From: Ian Abbott Date: Thu, 4 Apr 2013 13:59:10 +0000 (+0100) Subject: staging: comedi: change comedi_read/write_subdevice() parameters X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~278 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da56fdc6cd6ebefb597bbf9f1b30c2b0a39c9f56;p=pandora-kernel.git staging: comedi: change comedi_read/write_subdevice() parameters `comedi_read_subdevice()` and `comedi_write_subdevice()` currently take a single parameter pointing to a `struct comedi_file_info`. I'm trying to get rid of `struct comedi_file_info` so as part of that plan, `comedi_read_subdevice()` and `comedi_write_subdevice()` need to change. Change them to take two parameters: a pointer to a `struct comedi_device` and a minor device number. If the minor device number is a "board" minor device number (`minor < COMEDI_NUM_BOARD_MINORS`) we'll always return the default read or write subdevice. If the minor device number if a "subdevice" minor device number a different read or write subdevice may be returned. In that case, use the subdevice minor device number to look up the information about whether the default read or write subdevice needs to be overridden. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed