From: Ian Abbott Date: Wed, 19 Sep 2012 18:37:37 +0000 (+0100) Subject: staging: comedi: ni_labpc: pass ai scan mode through various functions X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~75^2~57 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f73fbcec27be8b074555e18d9f50c3013e4d802;p=pandora-kernel.git staging: comedi: ni_labpc: pass ai scan mode through various functions Pass the `enum scan_mode` value calculated by `labpc_ai_scan_mode()` as a parameter to various other functions so they don't have to call it themselves. Amongst others, the affected functions include `labpc_adc_timing()`, `labpc_ai_convert_period()` and `labpc_ai_scan_period()`. `labpc_adc_timing()` calls `labpc_ai_convert_period()` and `labpc_ai_scan_period()` in several places, but the returned values are the same each time, so change it to just call those functions once and re-use the return values. Signed-off-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed