V4L/DVB (4868): Dvb-pll: return frequency set by dvb_pll_configure()
authorMichael Krufky <mkrufky@linuxtv.org>
Mon, 20 Nov 2006 19:45:29 +0000 (16:45 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 10 Dec 2006 11:05:05 +0000 (09:05 -0200)
commit89faeefcf875c16d8923eaed50bd57731c221bcc
treefd6d7f56a3169b3fb9ff3dca12730bc2f469ad8e
parent47ae9ae895a5228e7a3ca47b1c9ab00a3f641923
V4L/DVB (4868): Dvb-pll: return frequency set by dvb_pll_configure()

This patch removes some duplicated code by returning the frequency set by
dvb_pll_configure(), instead of recalculating it again in dvb_pll_set_params()
and dvb_pll_calc_regs().
If the return value of dvb_pll_configure is less than zero, it is an error
code.  Otherwise, the return value is the frequency actually set by the
function.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Acked-by: Andrew de Quincey <adq_dvb@lidskialf.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/frontends/dvb-pll.c