OSDN Git Service

staging: comedi: ni_mio_common: consolidate call to ni_mseries_get_pll_parameters()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 18 Jul 2014 20:29:53 +0000 (13:29 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jul 2014 23:08:01 +0000 (16:08 -0700)
commit07e6b2e2a89ae6c0b61c270099fa23c06ca08ce6
tree40ec198244d882e42583792b3559ec5e4dd8ba1e
parent89c4695efd4b7d107a9ddbcf5c58b21051939d98
staging: comedi: ni_mio_common: consolidate call to ni_mseries_get_pll_parameters()

All cases of the switch call ni_mseries_get_pll_parameters() with the same
parameters. Move the call out of the switch.

Also, move the printk from ni_mseries_get_pll_parameters() so that it can
be converted into a dev_err().

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_mio_common.c