From: Ian Abbott Date: Tue, 6 May 2014 12:12:12 +0000 (+0100) Subject: staging: comedi: pass subdevice to comedi_buf_munge() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~36^2~462 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b108588ba1ff6c18502dc9fe711b0229a18b9f8;p=pandora-kernel.git staging: comedi: pass subdevice to comedi_buf_munge() Local function `comedi_buf_munge()` is called by `comedi_buf_write_free()` to modify (or "munge") the data copied from a device into the buffer. Currently, the function takes a pointer to a `struct comedi_async` and gets a pointer to the comedi subdevice from the `subdevice` member. Change it to take a pointer to a `struct comedi_subdevice` and get a pointer to the "async" structure from the `async` member. The main motivation for this is to elimate the `subdevice` member of `struct comedi_async`. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed