summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/mn88472.h
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2014-10-26 23:01:07 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-11-14 17:21:04 -0200
commit528af1952ec04c86d554992021f62cd76fc8b19c (patch)
treec25ecf8d455316524d0ad0235c599d7e9e7a7907 /drivers/media/dvb-frontends/mn88472.h
parent0186e434a7f8c9520570a75775d8096ff3ccb454 (diff)
downloadop-kernel-dev-528af1952ec04c86d554992021f62cd76fc8b19c.zip
op-kernel-dev-528af1952ec04c86d554992021f62cd76fc8b19c.tar.gz
[media] mn88472: convert driver to I2C client
It uses I2C bus so better to implement it as a standard I2C driver model. It was using proprietary DVB binding. 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/mn88472.h')
-rw-r--r--drivers/media/dvb-frontends/mn88472.h30
1 files changed, 11 insertions, 19 deletions
diff --git a/drivers/media/dvb-frontends/mn88472.h b/drivers/media/dvb-frontends/mn88472.h
index 5ce6ac1..da4558b 100644
--- a/drivers/media/dvb-frontends/mn88472.h
+++ b/drivers/media/dvb-frontends/mn88472.h
@@ -21,26 +21,18 @@
struct mn88472_config {
/*
- * max bytes I2C client could write
- * Value must be set.
+ * Max num of bytes given I2C adapter could write at once.
+ * Default: none
*/
- int i2c_wr_max;
-};
+ u16 i2c_wr_max;
-#if IS_ENABLED(CONFIG_DVB_MN88472)
-extern struct dvb_frontend *mn88472_attach(
- const struct mn88472_config *cfg,
- struct i2c_adapter *i2c
-);
-#else
-static inline struct dvb_frontend *mn88472_attach(
- const struct mn88472_config *cfg,
- struct i2c_adapter *i2c
-)
-{
- dev_warn(&i2c->dev, "%s: driver disabled by Kconfig\n", __func__);
- return NULL;
-}
-#endif
+
+ /* Everything after that is returned by the driver. */
+
+ /*
+ * DVB frontend.
+ */
+ struct dvb_frontend **fe;
+};
#endif
OpenPOWER on IntegriCloud