aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/tuners
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2014-08-28 00:45:52 -0400
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-09-21 17:24:59 -0400
commitb7413c800fa7566696f1209207a90d014f548dac (patch)
treef6943ab29938d1bb7848f6b90789898babbc9374 /drivers/media/tuners
parent676c350f97366f648dbe7f7f8202a695d946f764 (diff)
[media] it913x: remove dead code
Remove unused tuner set template. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/tuners')
-rw-r--r--drivers/media/tuners/it913x.c9
-rw-r--r--drivers/media/tuners/it913x_priv.h11
2 files changed, 1 insertions, 19 deletions
diff --git a/drivers/media/tuners/it913x.c b/drivers/media/tuners/it913x.c
index 11d391a5d5c6..ab386bf01daf 100644
--- a/drivers/media/tuners/it913x.c
+++ b/drivers/media/tuners/it913x.c
@@ -28,7 +28,6 @@ struct it913x_dev {
28 struct dvb_frontend *fe; 28 struct dvb_frontend *fe;
29 u8 chip_ver:2; 29 u8 chip_ver:2;
30 u8 role:2; 30 u8 role:2;
31 u8 firmware_ver;
32 u16 tun_xtal; 31 u16 tun_xtal;
33 u8 tun_fdiv; 32 u8 tun_fdiv;
34 u8 tun_clk_mode; 33 u8 tun_clk_mode;
@@ -182,7 +181,7 @@ err:
182static int it9137_set_params(struct dvb_frontend *fe) 181static int it9137_set_params(struct dvb_frontend *fe)
183{ 182{
184 struct it913x_dev *dev = fe->tuner_priv; 183 struct it913x_dev *dev = fe->tuner_priv;
185 struct it913xset *set_tuner = set_it9137_template; 184 struct it913xset *set_tuner = set_it9135_template;
186 struct dtv_frontend_properties *p = &fe->dtv_property_cache; 185 struct dtv_frontend_properties *p = &fe->dtv_property_cache;
187 u32 bandwidth = p->bandwidth_hz; 186 u32 bandwidth = p->bandwidth_hz;
188 u32 frequency_m = p->frequency; 187 u32 frequency_m = p->frequency;
@@ -197,11 +196,6 @@ static int it9137_set_params(struct dvb_frontend *fe)
197 u8 lna_band; 196 u8 lna_band;
198 u8 bw; 197 u8 bw;
199 198
200 if (dev->firmware_ver == 1)
201 set_tuner = set_it9135_template;
202 else
203 set_tuner = set_it9137_template;
204
205 dev_dbg(&dev->client->dev, "Tuner Frequency %d Bandwidth %d\n", 199 dev_dbg(&dev->client->dev, "Tuner Frequency %d Bandwidth %d\n",
206 frequency, bandwidth); 200 frequency, bandwidth);
207 201
@@ -367,7 +361,6 @@ static int it913x_probe(struct i2c_client *client,
367 dev->fe = cfg->fe; 361 dev->fe = cfg->fe;
368 dev->chip_ver = cfg->chip_ver; 362 dev->chip_ver = cfg->chip_ver;
369 dev->role = cfg->role; 363 dev->role = cfg->role;
370 dev->firmware_ver = 1;
371 dev->regmap = regmap_init_i2c(client, &regmap_config); 364 dev->regmap = regmap_init_i2c(client, &regmap_config);
372 if (IS_ERR(dev->regmap)) { 365 if (IS_ERR(dev->regmap)) {
373 ret = PTR_ERR(dev->regmap); 366 ret = PTR_ERR(dev->regmap);
diff --git a/drivers/media/tuners/it913x_priv.h b/drivers/media/tuners/it913x_priv.h
index 41f9b2a43e39..a6ddd02c2179 100644
--- a/drivers/media/tuners/it913x_priv.h
+++ b/drivers/media/tuners/it913x_priv.h
@@ -44,15 +44,4 @@ static struct it913xset set_it9135_template[] = {
44 {0x000000, {0x00}, 0x00}, /* Terminating Entry */ 44 {0x000000, {0x00}, 0x00}, /* Terminating Entry */
45}; 45};
46 46
47static struct it913xset set_it9137_template[] = {
48 {0x80ee06, {0x00}, 0x01},
49 {0x80ec56, {0x00}, 0x01},
50 {0x80ec4c, {0x00}, 0x01},
51 {0x80ec4d, {0x00}, 0x01},
52 {0x80ec4e, {0x00}, 0x01},
53 {0x80ec4f, {0x00}, 0x01},
54 {0x80ec50, {0x00}, 0x01},
55 {0x000000, {0x00}, 0x00}, /* Terminating Entry */
56};
57
58#endif 47#endif