summaryrefslogtreecommitdiff
path: root/drivers/media/dvb-frontends/rtl2832.h
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2013-11-26 12:53:46 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-03-05 15:38:28 -0300
commit8823f0288d345a26b27502c71f8ca3d05b4ac013 (patch)
tree12c7419d42bd1873db13cdea116635498c9d98a0 /drivers/media/dvb-frontends/rtl2832.h
parent3ca2418d707c9eeafa76f6096eb8e06d1cfa8bdb (diff)
[media] rtl2832: provide muxed I2C adapter
RTL2832 provides gated / repeater I2C adapter for tuner. Implement it as a muxed I2C adapter. 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/rtl2832.h')
-rw-r--r--drivers/media/dvb-frontends/rtl2832.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/rtl2832.h b/drivers/media/dvb-frontends/rtl2832.h
index fa4e5f651aa7..a9202d72a8aa 100644
--- a/drivers/media/dvb-frontends/rtl2832.h
+++ b/drivers/media/dvb-frontends/rtl2832.h
@@ -55,7 +55,13 @@ struct dvb_frontend *rtl2832_attach(
const struct rtl2832_config *cfg,
struct i2c_adapter *i2c
);
+
+extern struct i2c_adapter *rtl2832_get_i2c_adapter(
+ struct dvb_frontend *fe
+);
+
#else
+
static inline struct dvb_frontend *rtl2832_attach(
const struct rtl2832_config *config,
struct i2c_adapter *i2c
@@ -64,6 +70,13 @@ static inline struct dvb_frontend *rtl2832_attach(
pr_warn("%s: driver disabled by Kconfig\n", __func__);
return NULL;
}
+
+static inline struct i2c_adapter *rtl2832_get_i2c_adapter(
+ struct dvb_frontend *fe
+)
+{
+ return NULL;
+}
#endif