diff options
author | Patrick Boettcher <pb@linuxtv.org> | 2006-05-14 04:01:31 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-25 01:00:42 -0400 |
commit | dea74869f3c62b0b7addd67017b22b394e942aac (patch) | |
tree | d1a597caea6615c76f34896cc832fd1371f2e776 /drivers/media/dvb/ttpci/av7110.c | |
parent | 332bed5fc25ab0eb84215ecd89a4acd48219eee0 (diff) |
V4L/DVB (4028): Change dvb_frontend_ops to be a real field instead of a pointer field inside dvb_frontend
The dvb_frontend_ops is a pointer inside dvb_frontend. That's why every demod-driver
is having a field of dvb_frontend_ops in its private-state-struct and
using the reference for filling the pointer-field in dvb_frontend.
- It saves at least two lines of code per demod-driver,
- reduces object size (one less dereference per frontend_ops-access),
- be coherent with dvb_tuner_ops,
- makes it a little bit easier for newbies to understand how it works and
- avoids stupid mistakes because you would have to copy the dvb_frontend_ops
always, before you could assign the static pointer directly, which was
dangerous.
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/ttpci/av7110.c')
-rw-r--r-- | drivers/media/dvb/ttpci/av7110.c | 116 |
1 files changed, 58 insertions, 58 deletions
diff --git a/drivers/media/dvb/ttpci/av7110.c b/drivers/media/dvb/ttpci/av7110.c index be0a04caf923..8832f80c05f7 100644 --- a/drivers/media/dvb/ttpci/av7110.c +++ b/drivers/media/dvb/ttpci/av7110.c | |||
@@ -1575,8 +1575,8 @@ static int alps_bsrv2_tuner_set_params(struct dvb_frontend* fe, struct dvb_front | |||
1575 | // NOTE: since we're using a prescaler of 2, we set the | 1575 | // NOTE: since we're using a prescaler of 2, we set the |
1576 | // divisor frequency to 62.5kHz and divide by 125 above | 1576 | // divisor frequency to 62.5kHz and divide by 125 above |
1577 | 1577 | ||
1578 | if (fe->ops->i2c_gate_ctrl) | 1578 | if (fe->ops.i2c_gate_ctrl) |
1579 | fe->ops->i2c_gate_ctrl(fe, 1); | 1579 | fe->ops.i2c_gate_ctrl(fe, 1); |
1580 | if (i2c_transfer (&av7110->i2c_adap, &msg, 1) != 1) | 1580 | if (i2c_transfer (&av7110->i2c_adap, &msg, 1) != 1) |
1581 | return -EIO; | 1581 | return -EIO; |
1582 | return 0; | 1582 | return 0; |
@@ -1602,8 +1602,8 @@ static int alps_tdbe2_tuner_set_params(struct dvb_frontend* fe, struct dvb_front | |||
1602 | data[2] = 0x85 | ((div >> 10) & 0x60); | 1602 | data[2] = 0x85 | ((div >> 10) & 0x60); |
1603 | data[3] = (params->frequency < 174000000 ? 0x88 : params->frequency < 470000000 ? 0x84 : 0x81); | 1603 | data[3] = (params->frequency < 174000000 ? 0x88 : params->frequency < 470000000 ? 0x84 : 0x81); |
1604 | 1604 | ||
1605 | if (fe->ops->i2c_gate_ctrl) | 1605 | if (fe->ops.i2c_gate_ctrl) |
1606 | fe->ops->i2c_gate_ctrl(fe, 1); | 1606 | fe->ops.i2c_gate_ctrl(fe, 1); |
1607 | if (i2c_transfer(&av7110->i2c_adap, &msg, 1) != 1) | 1607 | if (i2c_transfer(&av7110->i2c_adap, &msg, 1) != 1) |
1608 | return -EIO; | 1608 | return -EIO; |
1609 | return 0; | 1609 | return 0; |
@@ -1632,8 +1632,8 @@ static int grundig_29504_451_tuner_set_params(struct dvb_frontend* fe, struct dv | |||
1632 | data[2] = 0x8e; | 1632 | data[2] = 0x8e; |
1633 | data[3] = 0x00; | 1633 | data[3] = 0x00; |
1634 | 1634 | ||
1635 | if (fe->ops->i2c_gate_ctrl) | 1635 | if (fe->ops.i2c_gate_ctrl) |
1636 | fe->ops->i2c_gate_ctrl(fe, 1); | 1636 | fe->ops.i2c_gate_ctrl(fe, 1); |
1637 | if (i2c_transfer(&av7110->i2c_adap, &msg, 1) != 1) | 1637 | if (i2c_transfer(&av7110->i2c_adap, &msg, 1) != 1) |
1638 | return -EIO; | 1638 | return -EIO; |
1639 | return 0; | 1639 | return 0; |
@@ -1660,8 +1660,8 @@ static int philips_cd1516_tuner_set_params(struct dvb_frontend* fe, struct dvb_f | |||
1660 | data[2] = 0x8e; | 1660 | data[2] = 0x8e; |
1661 | data[3] = (f < 174000000 ? 0xa1 : f < 470000000 ? 0x92 : 0x34); | 1661 | data[3] = (f < 174000000 ? 0xa1 : f < 470000000 ? 0x92 : 0x34); |
1662 | 1662 | ||
1663 | if (fe->ops->i2c_gate_ctrl) | 1663 | if (fe->ops.i2c_gate_ctrl) |
1664 | fe->ops->i2c_gate_ctrl(fe, 1); | 1664 | fe->ops.i2c_gate_ctrl(fe, 1); |
1665 | if (i2c_transfer(&av7110->i2c_adap, &msg, 1) != 1) | 1665 | if (i2c_transfer(&av7110->i2c_adap, &msg, 1) != 1) |
1666 | return -EIO; | 1666 | return -EIO; |
1667 | return 0; | 1667 | return 0; |
@@ -1695,8 +1695,8 @@ static int alps_tdlb7_tuner_set_params(struct dvb_frontend* fe, struct dvb_front | |||
1695 | data[2] = 0x85; | 1695 | data[2] = 0x85; |
1696 | data[3] = pwr << 6; | 1696 | data[3] = pwr << 6; |
1697 | 1697 | ||
1698 | if (fe->ops->i2c_gate_ctrl) | 1698 | if (fe->ops.i2c_gate_ctrl) |
1699 | fe->ops->i2c_gate_ctrl(fe, 1); | 1699 | fe->ops.i2c_gate_ctrl(fe, 1); |
1700 | if (i2c_transfer(&av7110->i2c_adap, &msg, 1) != 1) | 1700 | if (i2c_transfer(&av7110->i2c_adap, &msg, 1) != 1) |
1701 | return -EIO; | 1701 | return -EIO; |
1702 | return 0; | 1702 | return 0; |
@@ -1835,8 +1835,8 @@ static int nexusca_stv0297_tuner_set_params(struct dvb_frontend* fe, struct dvb_ | |||
1835 | else | 1835 | else |
1836 | return -EINVAL; | 1836 | return -EINVAL; |
1837 | 1837 | ||
1838 | if (fe->ops->i2c_gate_ctrl) | 1838 | if (fe->ops.i2c_gate_ctrl) |
1839 | fe->ops->i2c_gate_ctrl(fe, 1); | 1839 | fe->ops.i2c_gate_ctrl(fe, 1); |
1840 | if (i2c_transfer(&av7110->i2c_adap, &msg, 1) != 1) { | 1840 | if (i2c_transfer(&av7110->i2c_adap, &msg, 1) != 1) { |
1841 | printk("nexusca: pll transfer failed!\n"); | 1841 | printk("nexusca: pll transfer failed!\n"); |
1842 | return -EIO; | 1842 | return -EIO; |
@@ -1844,8 +1844,8 @@ static int nexusca_stv0297_tuner_set_params(struct dvb_frontend* fe, struct dvb_ | |||
1844 | 1844 | ||
1845 | // wait for PLL lock | 1845 | // wait for PLL lock |
1846 | for(i = 0; i < 20; i++) { | 1846 | for(i = 0; i < 20; i++) { |
1847 | if (fe->ops->i2c_gate_ctrl) | 1847 | if (fe->ops.i2c_gate_ctrl) |
1848 | fe->ops->i2c_gate_ctrl(fe, 1); | 1848 | fe->ops.i2c_gate_ctrl(fe, 1); |
1849 | if (i2c_transfer(&av7110->i2c_adap, &readmsg, 1) == 1) | 1849 | if (i2c_transfer(&av7110->i2c_adap, &readmsg, 1) == 1) |
1850 | if (data[0] & 0x40) break; | 1850 | if (data[0] & 0x40) break; |
1851 | msleep(10); | 1851 | msleep(10); |
@@ -1891,8 +1891,8 @@ static int grundig_29504_401_tuner_set_params(struct dvb_frontend* fe, struct dv | |||
1891 | data[2] = ((div >> 10) & 0x60) | cfg; | 1891 | data[2] = ((div >> 10) & 0x60) | cfg; |
1892 | data[3] = (cpump << 6) | band_select; | 1892 | data[3] = (cpump << 6) | band_select; |
1893 | 1893 | ||
1894 | if (fe->ops->i2c_gate_ctrl) | 1894 | if (fe->ops.i2c_gate_ctrl) |
1895 | fe->ops->i2c_gate_ctrl(fe, 1); | 1895 | fe->ops.i2c_gate_ctrl(fe, 1); |
1896 | if (i2c_transfer (&av7110->i2c_adap, &msg, 1) != 1) return -EIO; | 1896 | if (i2c_transfer (&av7110->i2c_adap, &msg, 1) != 1) return -EIO; |
1897 | return 0; | 1897 | return 0; |
1898 | } | 1898 | } |
@@ -2085,7 +2085,7 @@ static int frontend_init(struct av7110 *av7110) | |||
2085 | av7110->fe = ves1820_attach(&philips_cd1516_config, | 2085 | av7110->fe = ves1820_attach(&philips_cd1516_config, |
2086 | &av7110->i2c_adap, read_pwm(av7110)); | 2086 | &av7110->i2c_adap, read_pwm(av7110)); |
2087 | if (av7110->fe) { | 2087 | if (av7110->fe) { |
2088 | av7110->fe->ops->tuner_ops.set_params = philips_cd1516_tuner_set_params; | 2088 | av7110->fe->ops.tuner_ops.set_params = philips_cd1516_tuner_set_params; |
2089 | } | 2089 | } |
2090 | break; | 2090 | break; |
2091 | } | 2091 | } |
@@ -2099,10 +2099,10 @@ static int frontend_init(struct av7110 *av7110) | |||
2099 | // try the ALPS BSRV2 first of all | 2099 | // try the ALPS BSRV2 first of all |
2100 | av7110->fe = ves1x93_attach(&alps_bsrv2_config, &av7110->i2c_adap); | 2100 | av7110->fe = ves1x93_attach(&alps_bsrv2_config, &av7110->i2c_adap); |
2101 | if (av7110->fe) { | 2101 | if (av7110->fe) { |
2102 | av7110->fe->ops->tuner_ops.set_params = alps_bsrv2_tuner_set_params; | 2102 | av7110->fe->ops.tuner_ops.set_params = alps_bsrv2_tuner_set_params; |
2103 | av7110->fe->ops->diseqc_send_master_cmd = av7110_diseqc_send_master_cmd; | 2103 | av7110->fe->ops.diseqc_send_master_cmd = av7110_diseqc_send_master_cmd; |
2104 | av7110->fe->ops->diseqc_send_burst = av7110_diseqc_send_burst; | 2104 | av7110->fe->ops.diseqc_send_burst = av7110_diseqc_send_burst; |
2105 | av7110->fe->ops->set_tone = av7110_set_tone; | 2105 | av7110->fe->ops.set_tone = av7110_set_tone; |
2106 | av7110->recover = dvb_s_recover; | 2106 | av7110->recover = dvb_s_recover; |
2107 | break; | 2107 | break; |
2108 | } | 2108 | } |
@@ -2110,12 +2110,12 @@ static int frontend_init(struct av7110 *av7110) | |||
2110 | // try the ALPS BSRU6 now | 2110 | // try the ALPS BSRU6 now |
2111 | av7110->fe = stv0299_attach(&alps_bsru6_config, &av7110->i2c_adap); | 2111 | av7110->fe = stv0299_attach(&alps_bsru6_config, &av7110->i2c_adap); |
2112 | if (av7110->fe) { | 2112 | if (av7110->fe) { |
2113 | av7110->fe->ops->tuner_ops.set_params = alps_bsru6_tuner_set_params; | 2113 | av7110->fe->ops.tuner_ops.set_params = alps_bsru6_tuner_set_params; |
2114 | av7110->fe->tuner_priv = &av7110->i2c_adap; | 2114 | av7110->fe->tuner_priv = &av7110->i2c_adap; |
2115 | 2115 | ||
2116 | av7110->fe->ops->diseqc_send_master_cmd = av7110_diseqc_send_master_cmd; | 2116 | av7110->fe->ops.diseqc_send_master_cmd = av7110_diseqc_send_master_cmd; |
2117 | av7110->fe->ops->diseqc_send_burst = av7110_diseqc_send_burst; | 2117 | av7110->fe->ops.diseqc_send_burst = av7110_diseqc_send_burst; |
2118 | av7110->fe->ops->set_tone = av7110_set_tone; | 2118 | av7110->fe->ops.set_tone = av7110_set_tone; |
2119 | av7110->recover = dvb_s_recover; | 2119 | av7110->recover = dvb_s_recover; |
2120 | break; | 2120 | break; |
2121 | } | 2121 | } |
@@ -2123,10 +2123,10 @@ static int frontend_init(struct av7110 *av7110) | |||
2123 | // Try the grundig 29504-451 | 2123 | // Try the grundig 29504-451 |
2124 | av7110->fe = tda8083_attach(&grundig_29504_451_config, &av7110->i2c_adap); | 2124 | av7110->fe = tda8083_attach(&grundig_29504_451_config, &av7110->i2c_adap); |
2125 | if (av7110->fe) { | 2125 | if (av7110->fe) { |
2126 | av7110->fe->ops->tuner_ops.set_params = grundig_29504_451_tuner_set_params; | 2126 | av7110->fe->ops.tuner_ops.set_params = grundig_29504_451_tuner_set_params; |
2127 | av7110->fe->ops->diseqc_send_master_cmd = av7110_diseqc_send_master_cmd; | 2127 | av7110->fe->ops.diseqc_send_master_cmd = av7110_diseqc_send_master_cmd; |
2128 | av7110->fe->ops->diseqc_send_burst = av7110_diseqc_send_burst; | 2128 | av7110->fe->ops.diseqc_send_burst = av7110_diseqc_send_burst; |
2129 | av7110->fe->ops->set_tone = av7110_set_tone; | 2129 | av7110->fe->ops.set_tone = av7110_set_tone; |
2130 | av7110->recover = dvb_s_recover; | 2130 | av7110->recover = dvb_s_recover; |
2131 | break; | 2131 | break; |
2132 | } | 2132 | } |
@@ -2138,7 +2138,7 @@ static int frontend_init(struct av7110 *av7110) | |||
2138 | av7110->fe = ves1820_attach(&philips_cd1516_config, &av7110->i2c_adap, | 2138 | av7110->fe = ves1820_attach(&philips_cd1516_config, &av7110->i2c_adap, |
2139 | read_pwm(av7110)); | 2139 | read_pwm(av7110)); |
2140 | if (av7110->fe) { | 2140 | if (av7110->fe) { |
2141 | av7110->fe->ops->tuner_ops.set_params = philips_cd1516_tuner_set_params; | 2141 | av7110->fe->ops.tuner_ops.set_params = philips_cd1516_tuner_set_params; |
2142 | } | 2142 | } |
2143 | break; | 2143 | break; |
2144 | case 0x0003: | 2144 | case 0x0003: |
@@ -2146,7 +2146,7 @@ static int frontend_init(struct av7110 *av7110) | |||
2146 | av7110->fe = ves1820_attach(&alps_tdbe2_config, &av7110->i2c_adap, | 2146 | av7110->fe = ves1820_attach(&alps_tdbe2_config, &av7110->i2c_adap, |
2147 | read_pwm(av7110)); | 2147 | read_pwm(av7110)); |
2148 | if (av7110->fe) { | 2148 | if (av7110->fe) { |
2149 | av7110->fe->ops->tuner_ops.set_params = alps_tdbe2_tuner_set_params; | 2149 | av7110->fe->ops.tuner_ops.set_params = alps_tdbe2_tuner_set_params; |
2150 | } | 2150 | } |
2151 | break; | 2151 | break; |
2152 | } | 2152 | } |
@@ -2157,7 +2157,7 @@ static int frontend_init(struct av7110 *av7110) | |||
2157 | // ALPS TDLB7 | 2157 | // ALPS TDLB7 |
2158 | av7110->fe = sp8870_attach(&alps_tdlb7_config, &av7110->i2c_adap); | 2158 | av7110->fe = sp8870_attach(&alps_tdlb7_config, &av7110->i2c_adap); |
2159 | if (av7110->fe) { | 2159 | if (av7110->fe) { |
2160 | av7110->fe->ops->tuner_ops.set_params = alps_tdlb7_tuner_set_params; | 2160 | av7110->fe->ops.tuner_ops.set_params = alps_tdlb7_tuner_set_params; |
2161 | } | 2161 | } |
2162 | break; | 2162 | break; |
2163 | 2163 | ||
@@ -2165,7 +2165,7 @@ static int frontend_init(struct av7110 *av7110) | |||
2165 | 2165 | ||
2166 | av7110->fe = ves1820_attach(&alps_tdbe2_config, &av7110->i2c_adap, read_pwm(av7110)); | 2166 | av7110->fe = ves1820_attach(&alps_tdbe2_config, &av7110->i2c_adap, read_pwm(av7110)); |
2167 | if (av7110->fe) { | 2167 | if (av7110->fe) { |
2168 | av7110->fe->ops->tuner_ops.set_params = alps_tdbe2_tuner_set_params; | 2168 | av7110->fe->ops.tuner_ops.set_params = alps_tdbe2_tuner_set_params; |
2169 | } | 2169 | } |
2170 | break; | 2170 | break; |
2171 | 2171 | ||
@@ -2173,10 +2173,10 @@ static int frontend_init(struct av7110 *av7110) | |||
2173 | /* ALPS BSRV2 */ | 2173 | /* ALPS BSRV2 */ |
2174 | av7110->fe = ves1x93_attach(&alps_bsrv2_config, &av7110->i2c_adap); | 2174 | av7110->fe = ves1x93_attach(&alps_bsrv2_config, &av7110->i2c_adap); |
2175 | if (av7110->fe) { | 2175 | if (av7110->fe) { |
2176 | av7110->fe->ops->tuner_ops.set_params = alps_bsrv2_tuner_set_params; | 2176 | av7110->fe->ops.tuner_ops.set_params = alps_bsrv2_tuner_set_params; |
2177 | av7110->fe->ops->diseqc_send_master_cmd = av7110_diseqc_send_master_cmd; | 2177 | av7110->fe->ops.diseqc_send_master_cmd = av7110_diseqc_send_master_cmd; |
2178 | av7110->fe->ops->diseqc_send_burst = av7110_diseqc_send_burst; | 2178 | av7110->fe->ops.diseqc_send_burst = av7110_diseqc_send_burst; |
2179 | av7110->fe->ops->set_tone = av7110_set_tone; | 2179 | av7110->fe->ops.set_tone = av7110_set_tone; |
2180 | av7110->recover = dvb_s_recover; | 2180 | av7110->recover = dvb_s_recover; |
2181 | } | 2181 | } |
2182 | break; | 2182 | break; |
@@ -2185,10 +2185,10 @@ static int frontend_init(struct av7110 *av7110) | |||
2185 | /* Grundig 29504-451 */ | 2185 | /* Grundig 29504-451 */ |
2186 | av7110->fe = tda8083_attach(&grundig_29504_451_config, &av7110->i2c_adap); | 2186 | av7110->fe = tda8083_attach(&grundig_29504_451_config, &av7110->i2c_adap); |
2187 | if (av7110->fe) { | 2187 | if (av7110->fe) { |
2188 | av7110->fe->ops->tuner_ops.set_params = grundig_29504_451_tuner_set_params; | 2188 | av7110->fe->ops.tuner_ops.set_params = grundig_29504_451_tuner_set_params; |
2189 | av7110->fe->ops->diseqc_send_master_cmd = av7110_diseqc_send_master_cmd; | 2189 | av7110->fe->ops.diseqc_send_master_cmd = av7110_diseqc_send_master_cmd; |
2190 | av7110->fe->ops->diseqc_send_burst = av7110_diseqc_send_burst; | 2190 | av7110->fe->ops.diseqc_send_burst = av7110_diseqc_send_burst; |
2191 | av7110->fe->ops->set_tone = av7110_set_tone; | 2191 | av7110->fe->ops.set_tone = av7110_set_tone; |
2192 | av7110->recover = dvb_s_recover; | 2192 | av7110->recover = dvb_s_recover; |
2193 | } | 2193 | } |
2194 | break; | 2194 | break; |
@@ -2197,7 +2197,7 @@ static int frontend_init(struct av7110 *av7110) | |||
2197 | 2197 | ||
2198 | av7110->fe = l64781_attach(&grundig_29504_401_config, &av7110->i2c_adap); | 2198 | av7110->fe = l64781_attach(&grundig_29504_401_config, &av7110->i2c_adap); |
2199 | if (av7110->fe) { | 2199 | if (av7110->fe) { |
2200 | av7110->fe->ops->tuner_ops.set_params = grundig_29504_401_tuner_set_params; | 2200 | av7110->fe->ops.tuner_ops.set_params = grundig_29504_401_tuner_set_params; |
2201 | } | 2201 | } |
2202 | break; | 2202 | break; |
2203 | 2203 | ||
@@ -2205,7 +2205,7 @@ static int frontend_init(struct av7110 *av7110) | |||
2205 | 2205 | ||
2206 | av7110->fe = stv0297_attach(&nexusca_stv0297_config, &av7110->i2c_adap); | 2206 | av7110->fe = stv0297_attach(&nexusca_stv0297_config, &av7110->i2c_adap); |
2207 | if (av7110->fe) { | 2207 | if (av7110->fe) { |
2208 | av7110->fe->ops->tuner_ops.set_params = nexusca_stv0297_tuner_set_params; | 2208 | av7110->fe->ops.tuner_ops.set_params = nexusca_stv0297_tuner_set_params; |
2209 | 2209 | ||
2210 | /* set TDA9819 into DVB mode */ | 2210 | /* set TDA9819 into DVB mode */ |
2211 | saa7146_setgpio(av7110->dev, 1, SAA7146_GPIO_OUTLO); // TDA9198 pin9(STD) | 2211 | saa7146_setgpio(av7110->dev, 1, SAA7146_GPIO_OUTLO); // TDA9198 pin9(STD) |
@@ -2221,16 +2221,16 @@ static int frontend_init(struct av7110 *av7110) | |||
2221 | /* ALPS BSBE1 */ | 2221 | /* ALPS BSBE1 */ |
2222 | av7110->fe = stv0299_attach(&alps_bsbe1_config, &av7110->i2c_adap); | 2222 | av7110->fe = stv0299_attach(&alps_bsbe1_config, &av7110->i2c_adap); |
2223 | if (av7110->fe) { | 2223 | if (av7110->fe) { |
2224 | av7110->fe->ops->tuner_ops.set_params = alps_bsbe1_tuner_set_params; | 2224 | av7110->fe->ops.tuner_ops.set_params = alps_bsbe1_tuner_set_params; |
2225 | av7110->fe->tuner_priv = &av7110->i2c_adap; | 2225 | av7110->fe->tuner_priv = &av7110->i2c_adap; |
2226 | 2226 | ||
2227 | if (lnbp21_attach(av7110->fe, &av7110->i2c_adap, 0, 0)) { | 2227 | if (lnbp21_attach(av7110->fe, &av7110->i2c_adap, 0, 0)) { |
2228 | printk("dvb-ttpci: LNBP21 not found!\n"); | 2228 | printk("dvb-ttpci: LNBP21 not found!\n"); |
2229 | if (av7110->fe->ops->release) | 2229 | if (av7110->fe->ops.release) |
2230 | av7110->fe->ops->release(av7110->fe); | 2230 | av7110->fe->ops.release(av7110->fe); |
2231 | av7110->fe = NULL; | 2231 | av7110->fe = NULL; |
2232 | } else { | 2232 | } else { |
2233 | av7110->fe->ops->dishnetwork_send_legacy_command = NULL; | 2233 | av7110->fe->ops.dishnetwork_send_legacy_command = NULL; |
2234 | av7110->recover = dvb_s_recover; | 2234 | av7110->recover = dvb_s_recover; |
2235 | } | 2235 | } |
2236 | } | 2236 | } |
@@ -2247,21 +2247,21 @@ static int frontend_init(struct av7110 *av7110) | |||
2247 | av7110->dev->pci->subsystem_vendor, | 2247 | av7110->dev->pci->subsystem_vendor, |
2248 | av7110->dev->pci->subsystem_device); | 2248 | av7110->dev->pci->subsystem_device); |
2249 | } else { | 2249 | } else { |
2250 | FE_FUNC_OVERRIDE(av7110->fe->ops->init, av7110->fe_init, av7110_fe_init); | 2250 | FE_FUNC_OVERRIDE(av7110->fe->ops.init, av7110->fe_init, av7110_fe_init); |
2251 | FE_FUNC_OVERRIDE(av7110->fe->ops->read_status, av7110->fe_read_status, av7110_fe_read_status); | 2251 | FE_FUNC_OVERRIDE(av7110->fe->ops.read_status, av7110->fe_read_status, av7110_fe_read_status); |
2252 | FE_FUNC_OVERRIDE(av7110->fe->ops->diseqc_reset_overload, av7110->fe_diseqc_reset_overload, av7110_fe_diseqc_reset_overload); | 2252 | FE_FUNC_OVERRIDE(av7110->fe->ops.diseqc_reset_overload, av7110->fe_diseqc_reset_overload, av7110_fe_diseqc_reset_overload); |
2253 | FE_FUNC_OVERRIDE(av7110->fe->ops->diseqc_send_master_cmd, av7110->fe_diseqc_send_master_cmd, av7110_fe_diseqc_send_master_cmd); | 2253 | FE_FUNC_OVERRIDE(av7110->fe->ops.diseqc_send_master_cmd, av7110->fe_diseqc_send_master_cmd, av7110_fe_diseqc_send_master_cmd); |
2254 | FE_FUNC_OVERRIDE(av7110->fe->ops->diseqc_send_burst, av7110->fe_diseqc_send_burst, av7110_fe_diseqc_send_burst); | 2254 | FE_FUNC_OVERRIDE(av7110->fe->ops.diseqc_send_burst, av7110->fe_diseqc_send_burst, av7110_fe_diseqc_send_burst); |
2255 | FE_FUNC_OVERRIDE(av7110->fe->ops->set_tone, av7110->fe_set_tone, av7110_fe_set_tone); | 2255 | FE_FUNC_OVERRIDE(av7110->fe->ops.set_tone, av7110->fe_set_tone, av7110_fe_set_tone); |
2256 | FE_FUNC_OVERRIDE(av7110->fe->ops->set_voltage, av7110->fe_set_voltage, av7110_fe_set_voltage;) | 2256 | FE_FUNC_OVERRIDE(av7110->fe->ops.set_voltage, av7110->fe_set_voltage, av7110_fe_set_voltage;) |
2257 | FE_FUNC_OVERRIDE(av7110->fe->ops->dishnetwork_send_legacy_command, av7110->fe_dishnetwork_send_legacy_command, av7110_fe_dishnetwork_send_legacy_command); | 2257 | FE_FUNC_OVERRIDE(av7110->fe->ops.dishnetwork_send_legacy_command, av7110->fe_dishnetwork_send_legacy_command, av7110_fe_dishnetwork_send_legacy_command); |
2258 | FE_FUNC_OVERRIDE(av7110->fe->ops->set_frontend, av7110->fe_set_frontend, av7110_fe_set_frontend); | 2258 | FE_FUNC_OVERRIDE(av7110->fe->ops.set_frontend, av7110->fe_set_frontend, av7110_fe_set_frontend); |
2259 | 2259 | ||
2260 | ret = dvb_register_frontend(&av7110->dvb_adapter, av7110->fe); | 2260 | ret = dvb_register_frontend(&av7110->dvb_adapter, av7110->fe); |
2261 | if (ret < 0) { | 2261 | if (ret < 0) { |
2262 | printk("av7110: Frontend registration failed!\n"); | 2262 | printk("av7110: Frontend registration failed!\n"); |
2263 | if (av7110->fe->ops->release) | 2263 | if (av7110->fe->ops.release) |
2264 | av7110->fe->ops->release(av7110->fe); | 2264 | av7110->fe->ops.release(av7110->fe); |
2265 | av7110->fe = NULL; | 2265 | av7110->fe = NULL; |
2266 | } | 2266 | } |
2267 | } | 2267 | } |