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 17:28:28 +0000 (10:28 -0700)
commit24d0dd75ef19c885309cf06990267cd2cbf49fa4
treeb7bd403bfd7af7a7a4e59854850b9a5cfa1c4aff
parentc1a763c431dffca42b609be822a4e1ef4231c582
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