From: H Hartley Sweeten Date: Thu, 20 Nov 2014 22:10:48 +0000 (-0700) Subject: staging: comedi: adv_pci1724: introduce adv_pci1724_insn_write() X-Git-Tag: omap-for-v3.19/fixes-rc1~73^2~112 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcbd4ed87cc82398238eb870008a338b4faec76f;p=pandora-kernel.git staging: comedi: adv_pci1724: introduce adv_pci1724_insn_write() The analog output, offset calib, and gain calib subdevices all use similar (*insn_write) functions. The onyl difference is the 'mode' that is passed to the set_dac() helper. Introduce a new (*insn_write) function that can be used by all the subdevices. Use the s->private member to pass the 'mode' needed by set_dac(). Remove the subdevice specific (*insn_write) functions. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed