From: H Hartley Sweeten Date: Tue, 20 Jan 2015 21:52:59 +0000 (-0700) Subject: staging: comedi: adv_pci1710: change boardinfo 'n_counter' to 'has_counter' X-Git-Tag: fixes-v4.0-rc1~99^2~231 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5b6b54488d0cd054ab28f86565aeef537d7ee65;p=pandora-kernel.git staging: comedi: adv_pci1710: change boardinfo 'n_counter' to 'has_counter' The 'n_counter' member of the boardinfo is actually a flag indicating that the board exposes a single channel counter subdevice. For aesthetics, change the 'n_counter' member to a bit-field flag 'has_counter' and refactor the board attach accordingly. Remove the unnecessary initialization of the subdevice 'len_chanlist'. That member is only used by subdevices that support async commands. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed