Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] fc0011: Return early, if the frequency is already tuned

Return early, if we already tuned to a frequency.

Signed-off-by: Michael Buesch <m@bues.ch>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Michael Büsch and committed by
Mauro Carvalho Chehab
a92591a7 aadb4640

+3
+3
drivers/media/tuners/fc0011.c
··· 187 187 u8 fa, fp, vco_sel, vco_cal; 188 188 u8 regs[FC11_NR_REGS] = { }; 189 189 190 + if (priv->frequency == p->frequency) 191 + return 0; 192 + 190 193 regs[FC11_REG_7] = 0x0F; 191 194 regs[FC11_REG_8] = 0x3E; 192 195 regs[FC11_REG_10] = 0xB8;