[media] it913x: remove dead code
authorAntti Palosaari <crope@iki.fi>
Thu, 28 Aug 2014 04:45:52 +0000 (01:45 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sun, 21 Sep 2014 21:24:59 +0000 (18:24 -0300)
Remove unused tuner set template.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/tuners/it913x.c
drivers/media/tuners/it913x_priv.h

index 11d391a5d5c63193d500a2ea1eb9c0bbe7a67756..ab386bf01daf0f4319ede905dbb99ab96230e7fa 100644 (file)
@@ -28,7 +28,6 @@ struct it913x_dev {
        struct dvb_frontend *fe;
        u8 chip_ver:2;
        u8 role:2;
-       u8 firmware_ver;
        u16 tun_xtal;
        u8 tun_fdiv;
        u8 tun_clk_mode;
@@ -182,7 +181,7 @@ err:
 static int it9137_set_params(struct dvb_frontend *fe)
 {
        struct it913x_dev *dev = fe->tuner_priv;
-       struct it913xset *set_tuner = set_it9137_template;
+       struct it913xset *set_tuner = set_it9135_template;
        struct dtv_frontend_properties *p = &fe->dtv_property_cache;
        u32 bandwidth = p->bandwidth_hz;
        u32 frequency_m = p->frequency;
@@ -197,11 +196,6 @@ static int it9137_set_params(struct dvb_frontend *fe)
        u8 lna_band;
        u8 bw;
 
-       if (dev->firmware_ver == 1)
-               set_tuner = set_it9135_template;
-       else
-               set_tuner = set_it9137_template;
-
        dev_dbg(&dev->client->dev, "Tuner Frequency %d Bandwidth %d\n",
                        frequency, bandwidth);
 
@@ -367,7 +361,6 @@ static int it913x_probe(struct i2c_client *client,
        dev->fe = cfg->fe;
        dev->chip_ver = cfg->chip_ver;
        dev->role = cfg->role;
-       dev->firmware_ver = 1;
        dev->regmap = regmap_init_i2c(client, &regmap_config);
        if (IS_ERR(dev->regmap)) {
                ret = PTR_ERR(dev->regmap);
index 41f9b2a43e393c3f94e4498a0c91aaef3540fa02..a6ddd02c21792cd5a18959538b9e511159ff8c88 100644 (file)
@@ -44,15 +44,4 @@ static struct it913xset set_it9135_template[] = {
        {0x000000, {0x00}, 0x00}, /* Terminating Entry */
 };
 
-static struct it913xset set_it9137_template[] = {
-       {0x80ee06, {0x00}, 0x01},
-       {0x80ec56, {0x00}, 0x01},
-       {0x80ec4c, {0x00}, 0x01},
-       {0x80ec4d, {0x00}, 0x01},
-       {0x80ec4e, {0x00}, 0x01},
-       {0x80ec4f, {0x00}, 0x01},
-       {0x80ec50, {0x00}, 0x01},
-       {0x000000, {0x00}, 0x00}, /* Terminating Entry */
-};
-
 #endif