[media] dvb-frontends/cxd2841er: add variable for configuration flags
authorDaniel Scheller <d.scheller@gmx.net>
Sun, 9 Apr 2017 19:38:15 +0000 (16:38 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 20 Jun 2017 12:44:22 +0000 (09:44 -0300)
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: Daniel Scheller <d.scheller@gmx.net>
Acked-by: Abylay Ospan <aospan@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-frontends/cxd2841er.c
drivers/media/dvb-frontends/cxd2841er.h

index 9f4234fb285fc0785d5d1e8400874bb2bc1f0c9d..40189a395a67dc0fbc005c08b75549f51e2f79ba 100644 (file)
@@ -65,6 +65,7 @@ struct cxd2841er_priv {
        u8                              system;
        enum cxd2841er_xtal             xtal;
        enum fe_caps caps;
+       u32                             flags;
 };
 
 static const struct cxd2841er_cnr_data s_cn_data[] = {
@@ -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_slvt = (cfg->i2c_addr) >> 1;
        priv->xtal = cfg->xtal;
+       priv->flags = cfg->flags;
        priv->frontend.demodulator_priv = priv;
        dev_info(&priv->i2c->dev,
                "%s(): I2C adapter %p SLVX addr %x SLVT addr %x\n",
index 7f1acfb8f4f51a39c2a4c9c01b365ecaf2a6a946..2fb8b385c6433de3eb3d5ea8089675f573d2ce9b 100644 (file)
@@ -33,6 +33,7 @@ enum cxd2841er_xtal {
 struct cxd2841er_config {
        u8      i2c_addr;
        enum cxd2841er_xtal     xtal;
+       u32     flags;
 };
 
 #if IS_REACHABLE(CONFIG_DVB_CXD2841ER)