summaryrefslogtreecommitdiff
path: root/drivers/media/dvb-frontends/cxd2820r_priv.h
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2016-08-08 21:54:10 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-09-22 16:38:41 +0300
commitfcd09f6592cc1d55dea1571297ad88b9024de80c (patch)
treeb1eac6d196783e100a99454b3f04da0dd84447ef /drivers/media/dvb-frontends/cxd2820r_priv.h
parent7d4b64028c4bc8db01047b852777dbded4635de6 (diff)
downloadlinux-fcd09f6592cc1d55dea1571297ad88b9024de80c.tar.xz
[media] cxd2820r: improve IF frequency setting
Use 64-bit calculation. Return error if tuner does not provide get_if_frequency() callback. All currently used tuners has it. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/dvb-frontends/cxd2820r_priv.h')
-rw-r--r--drivers/media/dvb-frontends/cxd2820r_priv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/cxd2820r_priv.h b/drivers/media/dvb-frontends/cxd2820r_priv.h
index e31c48e53097..acfae17991e3 100644
--- a/drivers/media/dvb-frontends/cxd2820r_priv.h
+++ b/drivers/media/dvb-frontends/cxd2820r_priv.h
@@ -34,6 +34,8 @@ struct reg_val_mask {
u8 mask;
};
+#define CXD2820R_CLK 41000000
+
struct cxd2820r_priv {
struct i2c_adapter *i2c;
struct dvb_frontend fe;