summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/dvb-usb-v2/af9035.c
diff options
context:
space:
mode:
authorAntti Palosaari2013-02-28 04:14:06 +0100
committerMauro Carvalho Chehab2013-03-21 22:58:46 +0100
commit44af747f4e0174d5dbc8c565a4d329dbcf599921 (patch)
tree29a264280a58ce21305bee8e98df28b28638b647 /drivers/media/usb/dvb-usb-v2/af9035.c
parent[media] it913x: tuner power up routines (diff)
downloadkernel-qcow2-linux-44af747f4e0174d5dbc8c565a4d329dbcf599921.tar.gz
kernel-qcow2-linux-44af747f4e0174d5dbc8c565a4d329dbcf599921.tar.xz
kernel-qcow2-linux-44af747f4e0174d5dbc8c565a4d329dbcf599921.zip
[media] it913x: get rid of it913x config struct
We don't need it. Tuner ID and device address are enough. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/usb/dvb-usb-v2/af9035.c')
-rw-r--r--drivers/media/usb/dvb-usb-v2/af9035.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/drivers/media/usb/dvb-usb-v2/af9035.c b/drivers/media/usb/dvb-usb-v2/af9035.c
index 5c025f657144..ce8cccb8946a 100644
--- a/drivers/media/usb/dvb-usb-v2/af9035.c
+++ b/drivers/media/usb/dvb-usb-v2/af9035.c
@@ -978,20 +978,6 @@ static const struct fc0012_config af9035_fc0012_config[] = {
}
};
-static struct ite_config af9035_it913x_config = {
- .chip_ver = 0x02,
- .chip_type = 0x9135,
- .firmware = 0x00000000,
- .firmware_ver = 1,
- .adc_x2 = 1,
- .tuner_id_0 = 0x00,
- .tuner_id_1 = 0x00,
- .dual_mode = 0x00,
- .adf = 0x00,
- /* option to read SIGNAL_LEVEL */
- .read_slevel = 0,
-};
-
static int af9035_tuner_attach(struct dvb_usb_adapter *adap)
{
struct state *state = adap_to_priv(adap);
@@ -1159,15 +1145,13 @@ static int af9035_tuner_attach(struct dvb_usb_adapter *adap)
case AF9033_TUNER_IT9135_38:
case AF9033_TUNER_IT9135_51:
case AF9033_TUNER_IT9135_52:
- af9035_it913x_config.chip_ver = 0x01;
case AF9033_TUNER_IT9135_60:
case AF9033_TUNER_IT9135_61:
case AF9033_TUNER_IT9135_62:
- af9035_it913x_config.tuner_id_0 = state->af9033_config[0].tuner;
/* attach tuner */
fe = dvb_attach(it913x_attach, adap->fe[0], &d->i2c_adap,
state->af9033_config[adap->id].i2c_addr,
- &af9035_it913x_config);
+ state->af9033_config[0].tuner);
break;
default:
fe = NULL;