media: fc2580: fix tuning failure on 32-bit arch
authorAntti Palosaari <crope@iki.fi>
Fri, 11 Apr 2014 00:18:16 +0000 (21:18 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jun 2014 20:25:40 +0000 (13:25 -0700)
commit4f792a2972e6f320484abfc940f978177131facc
tree70fe4918fda0584b6be50592c94615f889b195d2
parent0a4e3565df0c91bf0f7a68dee09e45c9d9b2d360
media: fc2580: fix tuning failure on 32-bit arch

commit 8845cc6415ec28ef8d57b3fb81c75ef9bce69c5f upstream.

There was some frequency calculation overflows which caused tuning
failure on 32-bit architecture. Use 64-bit numbers where needed in
order to avoid calculation overflows.

Thanks for the Finnish person, who asked remain anonymous, reporting,
testing and suggesting the fix.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/tuners/fc2580.c
drivers/media/tuners/fc2580_priv.h