staging: comedi: ni_tio: tidy up ni_tio_get_clock_src()
Remove the static const local variable and add a blank line after the declarations. 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>
This commit is contained in:
parent
7d9e68d3f4
commit
f68d10c428
1 changed files with 2 additions and 2 deletions
|
@ -768,11 +768,11 @@ static void ni_tio_get_clock_src(struct ni_gpct *counter,
|
||||||
unsigned int *clock_source,
|
unsigned int *clock_source,
|
||||||
unsigned int *period_ns)
|
unsigned int *period_ns)
|
||||||
{
|
{
|
||||||
static const unsigned pico_per_nano = 1000;
|
|
||||||
uint64_t temp64;
|
uint64_t temp64;
|
||||||
|
|
||||||
*clock_source = ni_tio_generic_clock_src_select(counter);
|
*clock_source = ni_tio_generic_clock_src_select(counter);
|
||||||
temp64 = ni_tio_clock_period_ps(counter, *clock_source);
|
temp64 = ni_tio_clock_period_ps(counter, *clock_source);
|
||||||
do_div(temp64, pico_per_nano);
|
do_div(temp64, 1000); /* ps to ns */
|
||||||
*period_ns = temp64;
|
*period_ns = temp64;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue