adapt cxd2099 to mainline 4.14-rc2

This commit is contained in:
Ralph Metzler
2017-09-26 22:05:46 +02:00
parent 872f99fbbe
commit b5ae7ac76f
3 changed files with 165 additions and 101 deletions

View File

@@ -36,8 +36,18 @@ struct cxd2099_cfg {
u32 max_i2c;
};
#if defined(CONFIG_DVB_CXD2099) || \
(defined(CONFIG_DVB_CXD2099_MODULE) && defined(MODULE))
struct dvb_ca_en50221 *cxd2099_attach(struct cxd2099_cfg *cfg,
void *priv, struct i2c_adapter *i2c);
#else
static inline struct dvb_ca_en50221 *cxd2099_attach(struct cxd2099_cfg *cfg,
void *priv, struct i2c_adapter *i2c)
{
dev_warn(&i2c->dev, "%s: driver disabled by Kconfig\n", __func__);
return NULL;
}
#endif
#endif