]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[media] rtl2832: remove unused if_dvbt config parameter
authorAntti Palosaari <crope@iki.fi>
Sun, 13 Oct 2013 02:45:34 +0000 (23:45 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 5 Mar 2014 18:36:59 +0000 (15:36 -0300)
All used tuners has get_if_frequency() callback and that parameter
is not needed and will not needed as all upcoming tuner drivers
should implement get_if_frequency().

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/dvb-frontends/rtl2832.c
drivers/media/dvb-frontends/rtl2832.h
drivers/media/usb/dvb-usb-v2/rtl28xxu.c

index ff73da9365e3c7083a6dea2343f0de0bb27a3bb6..61d4ecbfd180d92b32c538221fdab7e4dabddce8 100644 (file)
@@ -514,12 +514,6 @@ static int rtl2832_init(struct dvb_frontend *fe)
                        goto err;
        }
 
-       if (!fe->ops.tuner_ops.get_if_frequency) {
-               ret = rtl2832_set_if(fe, priv->cfg.if_dvbt);
-               if (ret)
-                       goto err;
-       }
-
        /*
         * r820t NIM code does a software reset here at the demod -
         * may not be needed, as there's already a software reset at set_params()
index 2cfbb6a97061b166bac354c964a64a0e5a227eaa..e5430810e9e3064682d3f93f6a0bc5f476a470f4 100644 (file)
@@ -37,13 +37,6 @@ struct rtl2832_config {
         */
        u32 xtal;
 
-       /*
-        * IFs for all used modes.
-        * Hz
-        * 4570000, 4571429, 36000000, 36125000, 36166667, 44000000
-        */
-       u32 if_dvbt;
-
        /*
         * tuner
         * XXX: This must be keep sync with dvb_usb_rtl28xxu demod driver.
index 5e223e807de1137f980eecc39e3a23b7b9a2af2b..c6ff39e25388ab7ba055ea676730e713717623c2 100644 (file)
@@ -589,14 +589,12 @@ err:
 static struct rtl2832_config rtl28xxu_rtl2832_fc0012_config = {
        .i2c_addr = 0x10, /* 0x20 */
        .xtal = 28800000,
-       .if_dvbt = 0,
        .tuner = TUNER_RTL2832_FC0012
 };
 
 static struct rtl2832_config rtl28xxu_rtl2832_fc0013_config = {
        .i2c_addr = 0x10, /* 0x20 */
        .xtal = 28800000,
-       .if_dvbt = 0,
        .tuner = TUNER_RTL2832_FC0013
 };