|
112 | 112 | "Please see linux/Documentation/dvb/ for more details " \ |
113 | 113 | "on firmware-problems." |
114 | 114 |
|
115 | | -struct su3000_state { |
| 115 | +struct dw2102_state { |
116 | 116 | u8 initialized; |
117 | | -}; |
118 | | - |
119 | | -struct s6x0_state { |
120 | 117 | int (*old_set_voltage)(struct dvb_frontend *f, fe_sec_voltage_t v); |
121 | 118 | }; |
122 | 119 |
|
@@ -887,7 +884,7 @@ static int su3000_streaming_ctrl(struct dvb_usb_adapter *adap, int onoff) |
887 | 884 |
|
888 | 885 | static int su3000_power_ctrl(struct dvb_usb_device *d, int i) |
889 | 886 | { |
890 | | - struct su3000_state *state = (struct su3000_state *)d->priv; |
| 887 | + struct dw2102_state *state = (struct dw2102_state *)d->priv; |
891 | 888 | u8 obuf[] = {0xde, 0}; |
892 | 889 |
|
893 | 890 | info("%s: %d, initialized %d\n", __func__, i, state->initialized); |
@@ -973,7 +970,7 @@ static int s660_set_voltage(struct dvb_frontend *fe, fe_sec_voltage_t voltage) |
973 | 970 | { |
974 | 971 | struct dvb_usb_adapter *d = |
975 | 972 | (struct dvb_usb_adapter *)(fe->dvb->priv); |
976 | | - struct s6x0_state *st = (struct s6x0_state *)d->dev->priv; |
| 973 | + struct dw2102_state *st = (struct dw2102_state *)d->dev->priv; |
977 | 974 |
|
978 | 975 | dw210x_set_voltage(fe, voltage); |
979 | 976 | if (st->old_set_voltage) |
@@ -1295,7 +1292,7 @@ static int stv0288_frontend_attach(struct dvb_usb_adapter *d) |
1295 | 1292 |
|
1296 | 1293 | static int ds3000_frontend_attach(struct dvb_usb_adapter *d) |
1297 | 1294 | { |
1298 | | - struct s6x0_state *st = (struct s6x0_state *)d->dev->priv; |
| 1295 | + struct dw2102_state *st = d->dev->priv; |
1299 | 1296 | u8 obuf[] = {7, 1}; |
1300 | 1297 |
|
1301 | 1298 | d->fe_adap[0].fe = dvb_attach(ds3000_attach, &s660_ds3000_config, |
@@ -1857,7 +1854,7 @@ static struct dvb_usb_device_properties dw3101_properties = { |
1857 | 1854 | static struct dvb_usb_device_properties s6x0_properties = { |
1858 | 1855 | .caps = DVB_USB_IS_AN_I2C_ADAPTER, |
1859 | 1856 | .usb_ctrl = DEVICE_SPECIFIC, |
1860 | | - .size_of_priv = sizeof(struct s6x0_state), |
| 1857 | + .size_of_priv = sizeof(struct dw2102_state), |
1861 | 1858 | .firmware = S630_FIRMWARE, |
1862 | 1859 | .no_reconnect = 1, |
1863 | 1860 |
|
@@ -1950,7 +1947,7 @@ static struct dvb_usb_device_description d632 = { |
1950 | 1947 | static struct dvb_usb_device_properties su3000_properties = { |
1951 | 1948 | .caps = DVB_USB_IS_AN_I2C_ADAPTER, |
1952 | 1949 | .usb_ctrl = DEVICE_SPECIFIC, |
1953 | | - .size_of_priv = sizeof(struct su3000_state), |
| 1950 | + .size_of_priv = sizeof(struct dw2102_state), |
1954 | 1951 | .power_ctrl = su3000_power_ctrl, |
1955 | 1952 | .num_adapters = 1, |
1956 | 1953 | .identify_state = su3000_identify_state, |
@@ -2015,7 +2012,7 @@ static struct dvb_usb_device_properties su3000_properties = { |
2015 | 2012 | static struct dvb_usb_device_properties t220_properties = { |
2016 | 2013 | .caps = DVB_USB_IS_AN_I2C_ADAPTER, |
2017 | 2014 | .usb_ctrl = DEVICE_SPECIFIC, |
2018 | | - .size_of_priv = sizeof(struct su3000_state), |
| 2015 | + .size_of_priv = sizeof(struct dw2102_state), |
2019 | 2016 | .power_ctrl = su3000_power_ctrl, |
2020 | 2017 | .num_adapters = 1, |
2021 | 2018 | .identify_state = su3000_identify_state, |
|
0 commit comments