summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/m88ds3103_priv.h
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2014-07-10 13:17:58 +0200
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-07-23 02:28:26 +0200
commit3ae266f80cd3684cb78b59ce26af70792ad6994c (patch)
tree77e02949bc49fe1d245b65ff9432e5961c68678f /drivers/media/dvb-frontends/m88ds3103_priv.h
parent[media] xc4000: remove unnecessary break after goto (diff)
downloadlinux-3ae266f80cd3684cb78b59ce26af70792ad6994c.tar.xz
linux-3ae266f80cd3684cb78b59ce26af70792ad6994c.zip
[media] m88ds3103: fix SNR reporting on 32-bit arch
There was 32-bit calculation overflow. Use div_u64. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/dvb-frontends/m88ds3103_priv.h')
-rw-r--r--drivers/media/dvb-frontends/m88ds3103_priv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/m88ds3103_priv.h b/drivers/media/dvb-frontends/m88ds3103_priv.h
index 84c3c06df622..e73db5ccdc74 100644
--- a/drivers/media/dvb-frontends/m88ds3103_priv.h
+++ b/drivers/media/dvb-frontends/m88ds3103_priv.h
@@ -22,6 +22,7 @@
#include "dvb_math.h"
#include <linux/firmware.h>
#include <linux/i2c-mux.h>
+#include <linux/math64.h>
#define M88DS3103_FIRMWARE "dvb-demod-m88ds3103.fw"
#define M88DS3103_MCLK_KHZ 96000