diff options
-rw-r--r-- | drivers/media/dvb-frontends/dib8000.c | 6 | ||||
-rw-r--r-- | drivers/media/dvb-frontends/dib8000.h | 4 | ||||
-rw-r--r-- | drivers/media/usb/dvb-usb/dib0700_devices.c | 14 |
3 files changed, 12 insertions, 12 deletions
diff --git a/drivers/media/dvb-frontends/dib8000.c b/drivers/media/dvb-frontends/dib8000.c index 1632d78a5479..c1c8c92ce498 100644 --- a/drivers/media/dvb-frontends/dib8000.c +++ b/drivers/media/dvb-frontends/dib8000.c | |||
@@ -4405,12 +4405,12 @@ static const struct dvb_frontend_ops dib8000_ops = { | |||
4405 | .read_ucblocks = dib8000_read_unc_blocks, | 4405 | .read_ucblocks = dib8000_read_unc_blocks, |
4406 | }; | 4406 | }; |
4407 | 4407 | ||
4408 | struct dvb_frontend *dib8000_attach(struct i2c_adapter *i2c_adap, u8 i2c_addr, struct dib8000_config *cfg) | 4408 | struct dvb_frontend *dib8000_init(struct i2c_adapter *i2c_adap, u8 i2c_addr, struct dib8000_config *cfg) |
4409 | { | 4409 | { |
4410 | struct dvb_frontend *fe; | 4410 | struct dvb_frontend *fe; |
4411 | struct dib8000_state *state; | 4411 | struct dib8000_state *state; |
4412 | 4412 | ||
4413 | dprintk("dib8000_attach"); | 4413 | dprintk("dib8000_init"); |
4414 | 4414 | ||
4415 | state = kzalloc(sizeof(struct dib8000_state), GFP_KERNEL); | 4415 | state = kzalloc(sizeof(struct dib8000_state), GFP_KERNEL); |
4416 | if (state == NULL) | 4416 | if (state == NULL) |
@@ -4467,7 +4467,7 @@ error: | |||
4467 | return NULL; | 4467 | return NULL; |
4468 | } | 4468 | } |
4469 | 4469 | ||
4470 | EXPORT_SYMBOL(dib8000_attach); | 4470 | EXPORT_SYMBOL(dib8000_init); |
4471 | 4471 | ||
4472 | MODULE_AUTHOR("Olivier Grenie <Olivier.Grenie@dibcom.fr, " "Patrick Boettcher <pboettcher@dibcom.fr>"); | 4472 | MODULE_AUTHOR("Olivier Grenie <Olivier.Grenie@dibcom.fr, " "Patrick Boettcher <pboettcher@dibcom.fr>"); |
4473 | MODULE_DESCRIPTION("Driver for the DiBcom 8000 ISDB-T demodulator"); | 4473 | MODULE_DESCRIPTION("Driver for the DiBcom 8000 ISDB-T demodulator"); |
diff --git a/drivers/media/dvb-frontends/dib8000.h b/drivers/media/dvb-frontends/dib8000.h index b8c11e52c512..89962d640e4c 100644 --- a/drivers/media/dvb-frontends/dib8000.h +++ b/drivers/media/dvb-frontends/dib8000.h | |||
@@ -40,7 +40,7 @@ struct dib8000_config { | |||
40 | #define DEFAULT_DIB8000_I2C_ADDRESS 18 | 40 | #define DEFAULT_DIB8000_I2C_ADDRESS 18 |
41 | 41 | ||
42 | #if IS_ENABLED(CONFIG_DVB_DIB8000) | 42 | #if IS_ENABLED(CONFIG_DVB_DIB8000) |
43 | extern struct dvb_frontend *dib8000_attach(struct i2c_adapter *i2c_adap, u8 i2c_addr, struct dib8000_config *cfg); | 43 | extern struct dvb_frontend *dib8000_init(struct i2c_adapter *i2c_adap, u8 i2c_addr, struct dib8000_config *cfg); |
44 | extern struct i2c_adapter *dib8000_get_i2c_master(struct dvb_frontend *, enum dibx000_i2c_interface, int); | 44 | extern struct i2c_adapter *dib8000_get_i2c_master(struct dvb_frontend *, enum dibx000_i2c_interface, int); |
45 | 45 | ||
46 | extern int dib8000_i2c_enumeration(struct i2c_adapter *host, int no_of_demods, | 46 | extern int dib8000_i2c_enumeration(struct i2c_adapter *host, int no_of_demods, |
@@ -65,7 +65,7 @@ extern int dib8000_set_slave_frontend(struct dvb_frontend *fe, struct dvb_fronte | |||
65 | extern int dib8000_remove_slave_frontend(struct dvb_frontend *fe); | 65 | extern int dib8000_remove_slave_frontend(struct dvb_frontend *fe); |
66 | extern struct dvb_frontend *dib8000_get_slave_frontend(struct dvb_frontend *fe, int slave_index); | 66 | extern struct dvb_frontend *dib8000_get_slave_frontend(struct dvb_frontend *fe, int slave_index); |
67 | #else | 67 | #else |
68 | static inline struct dvb_frontend *dib8000_attach(struct i2c_adapter *i2c_adap, u8 i2c_addr, struct dib8000_config *cfg) | 68 | static inline struct dvb_frontend *dib8000_init(struct i2c_adapter *i2c_adap, u8 i2c_addr, struct dib8000_config *cfg) |
69 | { | 69 | { |
70 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); | 70 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); |
71 | return NULL; | 71 | return NULL; |
diff --git a/drivers/media/usb/dvb-usb/dib0700_devices.c b/drivers/media/usb/dvb-usb/dib0700_devices.c index c09505f5f18b..292f0f140670 100644 --- a/drivers/media/usb/dvb-usb/dib0700_devices.c +++ b/drivers/media/usb/dvb-usb/dib0700_devices.c | |||
@@ -1337,7 +1337,7 @@ static int stk807x_frontend_attach(struct dvb_usb_adapter *adap) | |||
1337 | dib8000_i2c_enumeration(&adap->dev->i2c_adap, 1, 18, | 1337 | dib8000_i2c_enumeration(&adap->dev->i2c_adap, 1, 18, |
1338 | 0x80, 0); | 1338 | 0x80, 0); |
1339 | 1339 | ||
1340 | adap->fe_adap[0].fe = dvb_attach(dib8000_attach, &adap->dev->i2c_adap, 0x80, | 1340 | adap->fe_adap[0].fe = dvb_attach(dib8000_init, &adap->dev->i2c_adap, 0x80, |
1341 | &dib807x_dib8000_config[0]); | 1341 | &dib807x_dib8000_config[0]); |
1342 | 1342 | ||
1343 | return adap->fe_adap[0].fe == NULL ? -ENODEV : 0; | 1343 | return adap->fe_adap[0].fe == NULL ? -ENODEV : 0; |
@@ -1366,7 +1366,7 @@ static int stk807xpvr_frontend_attach0(struct dvb_usb_adapter *adap) | |||
1366 | /* initialize IC 0 */ | 1366 | /* initialize IC 0 */ |
1367 | dib8000_i2c_enumeration(&adap->dev->i2c_adap, 1, 0x22, 0x80, 0); | 1367 | dib8000_i2c_enumeration(&adap->dev->i2c_adap, 1, 0x22, 0x80, 0); |
1368 | 1368 | ||
1369 | adap->fe_adap[0].fe = dvb_attach(dib8000_attach, &adap->dev->i2c_adap, 0x80, | 1369 | adap->fe_adap[0].fe = dvb_attach(dib8000_init, &adap->dev->i2c_adap, 0x80, |
1370 | &dib807x_dib8000_config[0]); | 1370 | &dib807x_dib8000_config[0]); |
1371 | 1371 | ||
1372 | return adap->fe_adap[0].fe == NULL ? -ENODEV : 0; | 1372 | return adap->fe_adap[0].fe == NULL ? -ENODEV : 0; |
@@ -1377,7 +1377,7 @@ static int stk807xpvr_frontend_attach1(struct dvb_usb_adapter *adap) | |||
1377 | /* initialize IC 1 */ | 1377 | /* initialize IC 1 */ |
1378 | dib8000_i2c_enumeration(&adap->dev->i2c_adap, 1, 0x12, 0x82, 0); | 1378 | dib8000_i2c_enumeration(&adap->dev->i2c_adap, 1, 0x12, 0x82, 0); |
1379 | 1379 | ||
1380 | adap->fe_adap[0].fe = dvb_attach(dib8000_attach, &adap->dev->i2c_adap, 0x82, | 1380 | adap->fe_adap[0].fe = dvb_attach(dib8000_init, &adap->dev->i2c_adap, 0x82, |
1381 | &dib807x_dib8000_config[1]); | 1381 | &dib807x_dib8000_config[1]); |
1382 | 1382 | ||
1383 | return adap->fe_adap[0].fe == NULL ? -ENODEV : 0; | 1383 | return adap->fe_adap[0].fe == NULL ? -ENODEV : 0; |
@@ -1709,7 +1709,7 @@ static int stk809x_frontend_attach(struct dvb_usb_adapter *adap) | |||
1709 | 1709 | ||
1710 | dib8000_i2c_enumeration(&adap->dev->i2c_adap, 1, 18, 0x80, 0); | 1710 | dib8000_i2c_enumeration(&adap->dev->i2c_adap, 1, 18, 0x80, 0); |
1711 | 1711 | ||
1712 | adap->fe_adap[0].fe = dvb_attach(dib8000_attach, &adap->dev->i2c_adap, 0x80, &dib809x_dib8000_config[0]); | 1712 | adap->fe_adap[0].fe = dvb_attach(dib8000_init, &adap->dev->i2c_adap, 0x80, &dib809x_dib8000_config[0]); |
1713 | 1713 | ||
1714 | return adap->fe_adap[0].fe == NULL ? -ENODEV : 0; | 1714 | return adap->fe_adap[0].fe == NULL ? -ENODEV : 0; |
1715 | } | 1715 | } |
@@ -1760,11 +1760,11 @@ static int nim8096md_frontend_attach(struct dvb_usb_adapter *adap) | |||
1760 | 1760 | ||
1761 | dib8000_i2c_enumeration(&adap->dev->i2c_adap, 2, 18, 0x80, 0); | 1761 | dib8000_i2c_enumeration(&adap->dev->i2c_adap, 2, 18, 0x80, 0); |
1762 | 1762 | ||
1763 | adap->fe_adap[0].fe = dvb_attach(dib8000_attach, &adap->dev->i2c_adap, 0x80, &dib809x_dib8000_config[0]); | 1763 | adap->fe_adap[0].fe = dvb_attach(dib8000_init, &adap->dev->i2c_adap, 0x80, &dib809x_dib8000_config[0]); |
1764 | if (adap->fe_adap[0].fe == NULL) | 1764 | if (adap->fe_adap[0].fe == NULL) |
1765 | return -ENODEV; | 1765 | return -ENODEV; |
1766 | 1766 | ||
1767 | fe_slave = dvb_attach(dib8000_attach, &adap->dev->i2c_adap, 0x82, &dib809x_dib8000_config[1]); | 1767 | fe_slave = dvb_attach(dib8000_init, &adap->dev->i2c_adap, 0x82, &dib809x_dib8000_config[1]); |
1768 | dib8000_set_slave_frontend(adap->fe_adap[0].fe, fe_slave); | 1768 | dib8000_set_slave_frontend(adap->fe_adap[0].fe, fe_slave); |
1769 | 1769 | ||
1770 | return fe_slave == NULL ? -ENODEV : 0; | 1770 | return fe_slave == NULL ? -ENODEV : 0; |
@@ -2078,7 +2078,7 @@ static int tfe8096p_frontend_attach(struct dvb_usb_adapter *adap) | |||
2078 | 2078 | ||
2079 | dib8000_i2c_enumeration(&adap->dev->i2c_adap, 1, 0x10, 0x80, 1); | 2079 | dib8000_i2c_enumeration(&adap->dev->i2c_adap, 1, 0x10, 0x80, 1); |
2080 | 2080 | ||
2081 | adap->fe_adap[0].fe = dvb_attach(dib8000_attach, | 2081 | adap->fe_adap[0].fe = dvb_attach(dib8000_init, |
2082 | &adap->dev->i2c_adap, 0x80, &tfe8096p_dib8000_config); | 2082 | &adap->dev->i2c_adap, 0x80, &tfe8096p_dib8000_config); |
2083 | 2083 | ||
2084 | return adap->fe_adap[0].fe == NULL ? -ENODEV : 0; | 2084 | return adap->fe_adap[0].fe == NULL ? -ENODEV : 0; |