[media] af9033: return regmap for integrated IT913x tuner driver
authorAntti Palosaari <crope@iki.fi>
Mon, 7 Nov 2016 00:14:18 +0000 (22:14 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 31 Jan 2017 12:48:14 +0000 (10:48 -0200)
IT9130 series contains integrated tuner driver, which uses that
demodulator address space. Return regmap in order to allow it913x
driver communication.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-frontends/af9033.c
drivers/media/dvb-frontends/af9033.h

index 0794c94baae5bd69a54b767fa3669bbed3fe25d1..7e0d1cf74705badbedef6004d146bbcf663d735b 100644 (file)
@@ -1150,6 +1150,7 @@ static int af9033_probe(struct i2c_client *client,
                cfg->ops->pid_filter = af9033_pid_filter;
                cfg->ops->pid_filter_ctrl = af9033_pid_filter_ctrl;
        }
+       cfg->regmap = dev->regmap;
        i2c_set_clientdata(client, dev);
 
        dev_info(&client->dev, "Afatech AF9033 successfully attached\n");
index 4eb64432345e577ee9d9e8e2ced2865c19146f3c..8193f9805c4f8c9ce6d238192c453858588e750f 100644 (file)
@@ -83,6 +83,12 @@ struct af9033_config {
         * returned by that driver
         */
        struct dvb_frontend **fe;
+
+       /*
+        * regmap for IT913x integrated tuner driver
+        * returned by that driver
+        */
+       struct regmap *regmap;
 };
 
 struct af9033_ops {