From: H Hartley Sweeten Date: Wed, 6 Feb 2013 00:27:37 +0000 (-0700) Subject: staging: comedi: vmk80xx: cleanup counter subdevice init X-Git-Tag: v3.9-rc1~127^2~84 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75a45d924dd33882caf80d3a78dd96c370a6580b;p=pandora-kernel.git staging: comedi: vmk80xx: cleanup counter subdevice init Change the 'cnt_bits' in the boardinfo to 'cnt_maxdata' so that the calculation of s->maxdata can be removed. Also, change the type to match the comedi_subdevice type. Add a comment about the '0' value for DEVICE_VMK8061. The s->maxdata should always be set for the subdevice. Move it out of the conditional. Rename the (*insn_read), (*insn_config_, and (*insn_write) functions for the counter subdevice to make grepping easier. For aesthetic reasons, add some whitespace to the subdevice init. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed