summaryrefslogtreecommitdiffstats
path: root/drivers/media/tuners/fc2580_priv.h
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2014-04-11 02:18:16 +0200
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-04-16 23:13:11 +0200
commit8845cc6415ec28ef8d57b3fb81c75ef9bce69c5f (patch)
treed5a72a1699f8c2e937bade8903f1202bfa44a452 /drivers/media/tuners/fc2580_priv.h
parent[media] Prefer gspca_sonixb over sn9c102 for all devices (diff)
downloadlinux-8845cc6415ec28ef8d57b3fb81c75ef9bce69c5f.tar.xz
linux-8845cc6415ec28ef8d57b3fb81c75ef9bce69c5f.zip
[media] fc2580: fix tuning failure on 32-bit arch
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. Cc: <stable@vger.kernel.org> Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/tuners/fc2580_priv.h')
-rw-r--r--drivers/media/tuners/fc2580_priv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/tuners/fc2580_priv.h b/drivers/media/tuners/fc2580_priv.h
index be38a9e637e0..646c99452136 100644
--- a/drivers/media/tuners/fc2580_priv.h
+++ b/drivers/media/tuners/fc2580_priv.h
@@ -22,6 +22,7 @@
#define FC2580_PRIV_H
#include "fc2580.h"
+#include <linux/math64.h>
struct fc2580_reg_val {
u8 reg;