diff options
author | Antti Palosaari <crope@iki.fi> | 2013-02-27 22:14:06 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-21 17:58:46 -0400 |
commit | 44af747f4e0174d5dbc8c565a4d329dbcf599921 (patch) | |
tree | 29a264280a58ce21305bee8e98df28b28638b647 /drivers/media/usb | |
parent | d19812eb5f1efed3fa0ba5d752da5f24d8c89701 (diff) |
[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')
-rw-r--r-- | drivers/media/usb/dvb-usb-v2/af9035.c | 18 |
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[] = { | |||
978 | } | 978 | } |
979 | }; | 979 | }; |
980 | 980 | ||
981 | static struct ite_config af9035_it913x_config = { | ||
982 | .chip_ver = 0x02, | ||
983 | .chip_type = 0x9135, | ||
984 | .firmware = 0x00000000, | ||
985 | .firmware_ver = 1, | ||
986 | .adc_x2 = 1, | ||
987 | .tuner_id_0 = 0x00, | ||
988 | .tuner_id_1 = 0x00, | ||
989 | .dual_mode = 0x00, | ||
990 | .adf = 0x00, | ||
991 | /* option to read SIGNAL_LEVEL */ | ||
992 | .read_slevel = 0, | ||
993 | }; | ||
994 | |||
995 | static int af9035_tuner_attach(struct dvb_usb_adapter *adap) | 981 | static int af9035_tuner_attach(struct dvb_usb_adapter *adap) |
996 | { | 982 | { |
997 | struct state *state = adap_to_priv(adap); | 983 | struct state *state = adap_to_priv(adap); |
@@ -1159,15 +1145,13 @@ static int af9035_tuner_attach(struct dvb_usb_adapter *adap) | |||
1159 | case AF9033_TUNER_IT9135_38: | 1145 | case AF9033_TUNER_IT9135_38: |
1160 | case AF9033_TUNER_IT9135_51: | 1146 | case AF9033_TUNER_IT9135_51: |
1161 | case AF9033_TUNER_IT9135_52: | 1147 | case AF9033_TUNER_IT9135_52: |
1162 | af9035_it913x_config.chip_ver = 0x01; | ||
1163 | case AF9033_TUNER_IT9135_60: | 1148 | case AF9033_TUNER_IT9135_60: |
1164 | case AF9033_TUNER_IT9135_61: | 1149 | case AF9033_TUNER_IT9135_61: |
1165 | case AF9033_TUNER_IT9135_62: | 1150 | case AF9033_TUNER_IT9135_62: |
1166 | af9035_it913x_config.tuner_id_0 = state->af9033_config[0].tuner; | ||
1167 | /* attach tuner */ | 1151 | /* attach tuner */ |
1168 | fe = dvb_attach(it913x_attach, adap->fe[0], &d->i2c_adap, | 1152 | fe = dvb_attach(it913x_attach, adap->fe[0], &d->i2c_adap, |
1169 | state->af9033_config[adap->id].i2c_addr, | 1153 | state->af9033_config[adap->id].i2c_addr, |
1170 | &af9035_it913x_config); | 1154 | state->af9033_config[0].tuner); |
1171 | break; | 1155 | break; |
1172 | default: | 1156 | default: |
1173 | fe = NULL; | 1157 | fe = NULL; |