aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/mn88473.h
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2014-10-02 22:41:26 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-11-14 17:25:18 -0200
commit01b4be1452431fae39250f8fb326c89d64a5a65c (patch)
tree10a46165fb4b2ec1d80e7284835a621381f1c800 /drivers/media/dvb-frontends/mn88473.h
parent[media] mn88473: improve IF frequency and BW handling (diff)
downloadlinux-dev-01b4be1452431fae39250f8fb326c89d64a5a65c.tar.xz
linux-dev-01b4be1452431fae39250f8fb326c89d64a5a65c.zip
[media] mn88473: convert driver to I2C binding
Driver was using DVB proprietary binding model. As it is I2C device, we could change it to normal kernel I2C driver. 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/mn88473.h')
-rw-r--r--drivers/media/dvb-frontends/mn88473.h30
1 files changed, 11 insertions, 19 deletions
diff --git a/drivers/media/dvb-frontends/mn88473.h b/drivers/media/dvb-frontends/mn88473.h
index 13b51b64b30f..a373ec93cbe0 100644
--- a/drivers/media/dvb-frontends/mn88473.h
+++ b/drivers/media/dvb-frontends/mn88473.h
@@ -21,26 +21,18 @@
struct mn88473_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_MN88473)
-extern struct dvb_frontend *mn88473_attach(
- const struct mn88473_config *cfg,
- struct i2c_adapter *i2c
-);
-#else
-static inline struct dvb_frontend *mn88473_attach(
- const struct mn88473_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