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 @@
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
......@@ -24,9 +24,9 @@
#define MN88473_FIRMWARE "dvb-demod-mn88473-01.fw"
struct mn88473_dev {
struct i2c_adapter *i2c;
const struct mn88473_config *cfg;
struct i2c_client *client[3];
struct dvb_frontend fe;
u16 i2c_wr_max;
fe_delivery_system_t delivery_system;
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