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)
committerJiri Slaby <jslaby@suse.cz>
Mon, 9 Jun 2014 13:53:59 +0000 (15:53 +0200)
commit383b17acfb28a57780d191a455019af5a011188e
tree30774f46e925f8da925819dbd5f5e523a5daab2a
parent2109c87bce2b451d88dcecc91b3fa59da1026819
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: Jiri Slaby <jslaby@suse.cz>
drivers/media/tuners/fc2580.c
drivers/media/tuners/fc2580_priv.h