Commit 050863aa authored by Daniel Scheller's avatar Daniel Scheller Committed by Mauro Carvalho Chehab

[media] dvb-frontends/cxd2841er: add variable for configuration flags

Throughout the patch series some configuration flags will be added to the
demod driver. This patch prepares this by adding the flags var to
struct cxd2841er_config, which will serve as a bitmask to toggle various
options and behaviour in the driver.
Signed-off-by: default avatarDaniel Scheller <d.scheller@gmx.net>
Acked-by: default avatarAbylay Ospan <aospan@netup.ru>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent cbc85a47
...@@ -65,6 +65,7 @@ struct cxd2841er_priv { ...@@ -65,6 +65,7 @@ struct cxd2841er_priv {
u8 system; u8 system;
enum cxd2841er_xtal xtal; enum cxd2841er_xtal xtal;
enum fe_caps caps; enum fe_caps caps;
u32 flags;
}; };
static const struct cxd2841er_cnr_data s_cn_data[] = { static const struct cxd2841er_cnr_data s_cn_data[] = {
...@@ -3736,6 +3737,7 @@ static struct dvb_frontend *cxd2841er_attach(struct cxd2841er_config *cfg, ...@@ -3736,6 +3737,7 @@ static struct dvb_frontend *cxd2841er_attach(struct cxd2841er_config *cfg,
priv->i2c_addr_slvx = (cfg->i2c_addr + 4) >> 1; priv->i2c_addr_slvx = (cfg->i2c_addr + 4) >> 1;
priv->i2c_addr_slvt = (cfg->i2c_addr) >> 1; priv->i2c_addr_slvt = (cfg->i2c_addr) >> 1;
priv->xtal = cfg->xtal; priv->xtal = cfg->xtal;
priv->flags = cfg->flags;
priv->frontend.demodulator_priv = priv; priv->frontend.demodulator_priv = priv;
dev_info(&priv->i2c->dev, dev_info(&priv->i2c->dev,
"%s(): I2C adapter %p SLVX addr %x SLVT addr %x\n", "%s(): I2C adapter %p SLVX addr %x SLVT addr %x\n",
......
...@@ -33,6 +33,7 @@ enum cxd2841er_xtal { ...@@ -33,6 +33,7 @@ enum cxd2841er_xtal {
struct cxd2841er_config { struct cxd2841er_config {
u8 i2c_addr; u8 i2c_addr;
enum cxd2841er_xtal xtal; enum cxd2841er_xtal xtal;
u32 flags;
}; };
#if IS_REACHABLE(CONFIG_DVB_CXD2841ER) #if IS_REACHABLE(CONFIG_DVB_CXD2841ER)
......
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