From: H Hartley Sweeten Date: Mon, 29 Jul 2013 20:55:00 +0000 (-0700) Subject: staging: comedi: das16: cleanup analog output subdevice X-Git-Tag: v3.12-rc1~183^2~444 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d063851933584ab812f59bb0cdfb16d584ac5b0;p=pandora-kernel.git staging: comedi: das16: cleanup analog output subdevice All the boards supported by this driver that have analog outputs use the same function to handle the (*insn_write) for the subdevice. They all also have 12-bit resolution (maxdata = 0x0fff). Remove the 'ao' and 'ao_nbits' members from the boardinfo and replace them with a simple bit-field flag 'has_ao'. Tidy up the subdevice init a bit as well as the (*insn_write) function. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed