commit | 581867bd9151ee77fad4b0fe47af96d923ac9ec2 | [log] [tgz] |
---|---|---|
author | H Hartley Sweeten <hsweeten@visionengravers.com> | Wed Mar 23 12:24:29 2016 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Mar 28 07:30:36 2016 -0700 |
tree | f9bdee8e84827959db6472dc3103232238156158 | |
parent | 47470216cc2fe413156aa44d7ae55e65712b0931 [diff] |
staging: comedi: dt282x: refactor dt282x_ns_to_timer() Define the pacer clock limits and remove the magic numbers. Refactor the code to use a common path to return the actual 'ns' timing and the timer divisor value. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>