Commit 5791eee2 authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab
Browse files

[media] rtl2832: remove unused if_dvbt config parameter



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: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 94b5fa6c
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -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()
+0 −7
Original line number Diff line number Diff line
@@ -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.
+0 −2
Original line number Diff line number Diff line
@@ -589,14 +589,12 @@ static int rtl2831u_frontend_attach(struct dvb_usb_adapter *adap)
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
};