Commit 01b4be14 authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab

[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: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent df810e8a
This diff is collapsed.
...@@ -21,26 +21,18 @@ ...@@ -21,26 +21,18 @@
struct mn88473_config { struct mn88473_config {
/* /*
* max bytes I2C client could write * Max num of bytes given I2C adapter could write at once.
* Value must be set. * Default: none
*/ */
int i2c_wr_max; u16 i2c_wr_max;
};
#if IS_ENABLED(CONFIG_DVB_MN88473)
extern struct dvb_frontend *mn88473_attach( /* Everything after that is returned by the driver. */
const struct mn88473_config *cfg,
struct i2c_adapter *i2c /*
); * DVB frontend.
#else */
static inline struct dvb_frontend *mn88473_attach( struct dvb_frontend **fe;
const struct mn88473_config *cfg, };
struct i2c_adapter *i2c
)
{
dev_warn(&i2c->dev, "%s: driver disabled by Kconfig\n", __func__);
return NULL;
}
#endif
#endif #endif
...@@ -24,9 +24,9 @@ ...@@ -24,9 +24,9 @@
#define MN88473_FIRMWARE "dvb-demod-mn88473-01.fw" #define MN88473_FIRMWARE "dvb-demod-mn88473-01.fw"
struct mn88473_dev { struct mn88473_dev {
struct i2c_adapter *i2c; struct i2c_client *client[3];
const struct mn88473_config *cfg;
struct dvb_frontend fe; struct dvb_frontend fe;
u16 i2c_wr_max;
fe_delivery_system_t delivery_system; fe_delivery_system_t delivery_system;
bool warm; /* FW running */ bool warm; /* FW running */
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment