From: H Hartley Sweeten Date: Thu, 4 Sep 2014 17:39:30 +0000 (-0700) Subject: staging: comedi: adl_pci9118: remove 'ai_ns_min' from boardinfo X-Git-Tag: fixes-for-v3.18-merge-window~15^2~699 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34607db8ad9d381bee30389731e42f66ff5a2c03;p=pandora-kernel.git staging: comedi: adl_pci9118: remove 'ai_ns_min' from boardinfo The minimum convert time 'ai_ns_min' is based on the sampling rate of the A/D converter. This driver supports boards that use different ADC chips for 16-bit and 12-bit analog inputs. These chips have different sampling rates. For aesthetics, move the 'ai_ns_min' member from the boardinfo to the private data. Initialize the member during the attach based on the 'maxdata' of the analog inputs. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed