summaryrefslogtreecommitdiff
path: root/drivers/media/dvb-frontends/rtl2830.h
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2014-12-07 04:07:29 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-02-02 17:47:32 -0200
commit28c08799390befbf0821ad6dcc3a38ade454cef9 (patch)
tree552021fa0eb7a26902e8867f95cc2cecf5c132ba /drivers/media/dvb-frontends/rtl2830.h
parentac5361a8c8ab29d2a6d849fed05326304e9d1ef8 (diff)
[media] rtl2830: convert driver to kernel I2C model
Convert driver to kernel I2C model. Old DVB proprietary model is still left there also. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/dvb-frontends/rtl2830.h')
-rw-r--r--drivers/media/dvb-frontends/rtl2830.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/rtl2830.h b/drivers/media/dvb-frontends/rtl2830.h
index 3313847fb0be..b925ea5147e6 100644
--- a/drivers/media/dvb-frontends/rtl2830.h
+++ b/drivers/media/dvb-frontends/rtl2830.h
@@ -24,6 +24,37 @@
#include <linux/kconfig.h>
#include <linux/dvb/frontend.h>
+struct rtl2830_platform_data {
+ /*
+ * Clock frequency.
+ * Hz
+ * 4000000, 16000000, 25000000, 28800000
+ */
+ u32 clk;
+
+ /*
+ * Spectrum inversion.
+ */
+ bool spec_inv;
+
+ /*
+ */
+ u8 vtop;
+
+ /*
+ */
+ u8 krf;
+
+ /*
+ */
+ u8 agc_targ_val;
+
+ /*
+ */
+ struct dvb_frontend* (*get_dvb_frontend)(struct i2c_client *);
+ struct i2c_adapter* (*get_i2c_adapter)(struct i2c_client *);
+};
+
struct rtl2830_config {
/*
* Demodulator I2C address.