diff options
Diffstat (limited to 'drivers/media/dvb/dvb-usb-v2/mxl111sf.c')
-rw-r--r-- | drivers/media/dvb/dvb-usb-v2/mxl111sf.c | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/drivers/media/dvb/dvb-usb-v2/mxl111sf.c b/drivers/media/dvb/dvb-usb-v2/mxl111sf.c index 861e0ae2abc5..efdcb15358f1 100644 --- a/drivers/media/dvb/dvb-usb-v2/mxl111sf.c +++ b/drivers/media/dvb/dvb-usb-v2/mxl111sf.c | |||
@@ -874,34 +874,12 @@ static int mxl111sf_attach_tuner(struct dvb_usb_adapter *adap) | |||
874 | if (dvb_attach(mxl111sf_tuner_attach, adap->fe[i], state, | 874 | if (dvb_attach(mxl111sf_tuner_attach, adap->fe[i], state, |
875 | &mxl_tuner_config) == NULL) | 875 | &mxl_tuner_config) == NULL) |
876 | return -EIO; | 876 | return -EIO; |
877 | adap->fe[i]->ops.read_signal_strength = adap->fe[i]->ops.tuner_ops.get_rf_strength; | ||
877 | } | 878 | } |
878 | 879 | ||
879 | return 0; | 880 | return 0; |
880 | } | 881 | } |
881 | 882 | ||
882 | static int mxl111sf_fe_ioctl_override(struct dvb_frontend *fe, | ||
883 | unsigned int cmd, void *parg, | ||
884 | unsigned int stage) | ||
885 | { | ||
886 | int err = 0; | ||
887 | |||
888 | switch (stage) { | ||
889 | case DVB_FE_IOCTL_PRE: | ||
890 | |||
891 | switch (cmd) { | ||
892 | case FE_READ_SIGNAL_STRENGTH: | ||
893 | err = fe->ops.tuner_ops.get_rf_strength(fe, parg); | ||
894 | /* If no error occurs, prevent dvb-core from handling | ||
895 | * this IOCTL, otherwise return the error */ | ||
896 | if (0 == err) | ||
897 | err = 1; | ||
898 | break; | ||
899 | } | ||
900 | break; | ||
901 | } | ||
902 | return err; | ||
903 | }; | ||
904 | |||
905 | static u32 mxl111sf_i2c_func(struct i2c_adapter *adapter) | 883 | static u32 mxl111sf_i2c_func(struct i2c_adapter *adapter) |
906 | { | 884 | { |
907 | return I2C_FUNC_I2C; | 885 | return I2C_FUNC_I2C; |
@@ -1082,7 +1060,6 @@ static struct dvb_usb_device_properties mxl111sf_props_dvbt = { | |||
1082 | .init = mxl111sf_init, | 1060 | .init = mxl111sf_init, |
1083 | .streaming_ctrl = mxl111sf_ep4_streaming_ctrl, | 1061 | .streaming_ctrl = mxl111sf_ep4_streaming_ctrl, |
1084 | .get_stream_config = mxl111sf_get_stream_config_dvbt, | 1062 | .get_stream_config = mxl111sf_get_stream_config_dvbt, |
1085 | .fe_ioctl_override = mxl111sf_fe_ioctl_override, | ||
1086 | 1063 | ||
1087 | .num_adapters = 1, | 1064 | .num_adapters = 1, |
1088 | .adapter = { | 1065 | .adapter = { |
@@ -1124,7 +1101,6 @@ static struct dvb_usb_device_properties mxl111sf_props_atsc = { | |||
1124 | .init = mxl111sf_init, | 1101 | .init = mxl111sf_init, |
1125 | .streaming_ctrl = mxl111sf_ep6_streaming_ctrl, | 1102 | .streaming_ctrl = mxl111sf_ep6_streaming_ctrl, |
1126 | .get_stream_config = mxl111sf_get_stream_config_atsc, | 1103 | .get_stream_config = mxl111sf_get_stream_config_atsc, |
1127 | .fe_ioctl_override = mxl111sf_fe_ioctl_override, | ||
1128 | 1104 | ||
1129 | .num_adapters = 1, | 1105 | .num_adapters = 1, |
1130 | .adapter = { | 1106 | .adapter = { |
@@ -1166,7 +1142,6 @@ static struct dvb_usb_device_properties mxl111sf_props_mh = { | |||
1166 | .init = mxl111sf_init, | 1142 | .init = mxl111sf_init, |
1167 | .streaming_ctrl = mxl111sf_ep5_streaming_ctrl, | 1143 | .streaming_ctrl = mxl111sf_ep5_streaming_ctrl, |
1168 | .get_stream_config = mxl111sf_get_stream_config_mh, | 1144 | .get_stream_config = mxl111sf_get_stream_config_mh, |
1169 | .fe_ioctl_override = mxl111sf_fe_ioctl_override, | ||
1170 | 1145 | ||
1171 | .num_adapters = 1, | 1146 | .num_adapters = 1, |
1172 | .adapter = { | 1147 | .adapter = { |
@@ -1235,7 +1210,6 @@ static struct dvb_usb_device_properties mxl111sf_props_atsc_mh = { | |||
1235 | .init = mxl111sf_init, | 1210 | .init = mxl111sf_init, |
1236 | .streaming_ctrl = mxl111sf_streaming_ctrl_atsc_mh, | 1211 | .streaming_ctrl = mxl111sf_streaming_ctrl_atsc_mh, |
1237 | .get_stream_config = mxl111sf_get_stream_config_atsc_mh, | 1212 | .get_stream_config = mxl111sf_get_stream_config_atsc_mh, |
1238 | .fe_ioctl_override = mxl111sf_fe_ioctl_override, | ||
1239 | 1213 | ||
1240 | .num_adapters = 1, | 1214 | .num_adapters = 1, |
1241 | .adapter = { | 1215 | .adapter = { |
@@ -1314,7 +1288,6 @@ static struct dvb_usb_device_properties mxl111sf_props_mercury = { | |||
1314 | .init = mxl111sf_init, | 1288 | .init = mxl111sf_init, |
1315 | .streaming_ctrl = mxl111sf_streaming_ctrl_mercury, | 1289 | .streaming_ctrl = mxl111sf_streaming_ctrl_mercury, |
1316 | .get_stream_config = mxl111sf_get_stream_config_mercury, | 1290 | .get_stream_config = mxl111sf_get_stream_config_mercury, |
1317 | .fe_ioctl_override = mxl111sf_fe_ioctl_override, | ||
1318 | 1291 | ||
1319 | .num_adapters = 1, | 1292 | .num_adapters = 1, |
1320 | .adapter = { | 1293 | .adapter = { |
@@ -1385,7 +1358,6 @@ static struct dvb_usb_device_properties mxl111sf_props_mercury_mh = { | |||
1385 | .init = mxl111sf_init, | 1358 | .init = mxl111sf_init, |
1386 | .streaming_ctrl = mxl111sf_streaming_ctrl_mercury_mh, | 1359 | .streaming_ctrl = mxl111sf_streaming_ctrl_mercury_mh, |
1387 | .get_stream_config = mxl111sf_get_stream_config_mercury_mh, | 1360 | .get_stream_config = mxl111sf_get_stream_config_mercury_mh, |
1388 | .fe_ioctl_override = mxl111sf_fe_ioctl_override, | ||
1389 | 1361 | ||
1390 | .num_adapters = 1, | 1362 | .num_adapters = 1, |
1391 | .adapter = { | 1363 | .adapter = { |