From: H Hartley Sweeten Date: Mon, 17 Feb 2014 21:27:37 +0000 (-0700) Subject: staging: comedi: pcl812: don't calc the timer divisors twice X-Git-Tag: v3.15-rc1~139^2~945 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8d863e4a9b7c7fefa9a1e743d5c290175e361bc;p=pandora-kernel.git staging: comedi: pcl812: don't calc the timer divisors twice The timer divisors are calculated in the (*do_cmdtest) before the (*do_cmd) is called by the comedi core. Save the values in the private data so they don't need to be recalced. Refactor pcl812_start_pacer() to use the values from the private data. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed