From: H Hartley Sweeten Date: Thu, 26 Sep 2013 18:40:15 +0000 (-0700) Subject: staging: comedi: 8253.h: tidy up the i8253_cascade_ns_to_timer*() users X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~62^2~555 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb9cfd7ed3f6ed4c40167b4251cdb382b6b3ba1c;p=pandora-kernel.git staging: comedi: 8253.h: tidy up the i8253_cascade_ns_to_timer*() users Introduce a couple defines for the common 8254 oscillator base values used in the comedi drivers and remove the custom defines and open coded values. Change the i8253_cascade_ns_to_timer_2div() calls in the drivers to the more generic i8253_cascade_ns_to_timer(). They are identical due to the #define in the 8253.h header. Remove the extra mask by TRIG_ROUND_MASK of the 'round_mode' parameter to i8253_cascade_ns_to_timer(). That function already handles the mask. Tidy up all the calls to i8253_cascade_ns_to_timer(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed