diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2007-06-12 15:10:51 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-07-18 13:24:16 -0400 |
commit | 47a9991e806940f400f90d7b9cbcf7c2925e4fce (patch) | |
tree | ed7f9e8955be4ea298fd2f87e196a69817ef3617 /drivers/media/dvb/dvb-usb | |
parent | 6c08d9290e2fc87b217d0f7c9cd67c9240ad7147 (diff) |
V4L/DVB (5780): Dvb: Remove static dependencies on dvb-pll
This patch removes all static dependencies on the dvb-pll module.
All exported dvb_pll_desc's have been UNexported, and the caller
will reference the individual dvb_pll_desc by it's index in the
pll_list array.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Acked-by: Oliver Endriss <o.endriss@gmx.de>
Acked-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/dvb-usb')
-rw-r--r-- | drivers/media/dvb/dvb-usb/Kconfig | 12 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-usb/cxusb.c | 10 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-usb/dibusb-common.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-usb/dibusb-mb.c | 4 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-usb/digitv.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-usb/opera1.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-usb/umt-010.c | 2 |
7 files changed, 18 insertions, 16 deletions
diff --git a/drivers/media/dvb/dvb-usb/Kconfig b/drivers/media/dvb/dvb-usb/Kconfig index f5e496d65224..40e41f2f5afe 100644 --- a/drivers/media/dvb/dvb-usb/Kconfig +++ b/drivers/media/dvb/dvb-usb/Kconfig | |||
@@ -2,7 +2,6 @@ config DVB_USB | |||
2 | tristate "Support for various USB DVB devices" | 2 | tristate "Support for various USB DVB devices" |
3 | depends on DVB_CORE && USB && I2C | 3 | depends on DVB_CORE && USB && I2C |
4 | select FW_LOADER | 4 | select FW_LOADER |
5 | select DVB_PLL | ||
6 | help | 5 | help |
7 | By enabling this you will be able to choose the various supported | 6 | By enabling this you will be able to choose the various supported |
8 | USB1.1 and USB2.0 DVB devices. | 7 | USB1.1 and USB2.0 DVB devices. |
@@ -27,13 +26,14 @@ config DVB_USB_A800 | |||
27 | depends on DVB_USB | 26 | depends on DVB_USB |
28 | select DVB_DIB3000MC | 27 | select DVB_DIB3000MC |
29 | select DVB_TUNER_MT2060 if !DVB_FE_CUSTOMISE | 28 | select DVB_TUNER_MT2060 if !DVB_FE_CUSTOMISE |
29 | select DVB_PLL if !DVB_FE_CUSTOMISE | ||
30 | help | 30 | help |
31 | Say Y here to support the AVerMedia AverTV DVB-T USB 2.0 (A800) receiver. | 31 | Say Y here to support the AVerMedia AverTV DVB-T USB 2.0 (A800) receiver. |
32 | 32 | ||
33 | config DVB_USB_DIBUSB_MB | 33 | config DVB_USB_DIBUSB_MB |
34 | tristate "DiBcom USB DVB-T devices (based on the DiB3000M-B) (see help for device list)" | 34 | tristate "DiBcom USB DVB-T devices (based on the DiB3000M-B) (see help for device list)" |
35 | depends on DVB_USB | 35 | depends on DVB_USB |
36 | select DVB_PLL | 36 | select DVB_PLL if !DVB_FE_CUSTOMISE |
37 | select DVB_DIB3000MB | 37 | select DVB_DIB3000MB |
38 | select DVB_TUNER_MT2060 if !DVB_FE_CUSTOMISE | 38 | select DVB_TUNER_MT2060 if !DVB_FE_CUSTOMISE |
39 | help | 39 | help |
@@ -89,7 +89,7 @@ config DVB_USB_DIB0700 | |||
89 | config DVB_USB_UMT_010 | 89 | config DVB_USB_UMT_010 |
90 | tristate "HanfTek UMT-010 DVB-T USB2.0 support" | 90 | tristate "HanfTek UMT-010 DVB-T USB2.0 support" |
91 | depends on DVB_USB | 91 | depends on DVB_USB |
92 | select DVB_PLL | 92 | select DVB_PLL if !DVB_FE_CUSTOMISE |
93 | select DVB_DIB3000MC | 93 | select DVB_DIB3000MC |
94 | select DVB_TUNER_MT2060 if !DVB_FE_CUSTOMISE | 94 | select DVB_TUNER_MT2060 if !DVB_FE_CUSTOMISE |
95 | help | 95 | help |
@@ -98,7 +98,7 @@ config DVB_USB_UMT_010 | |||
98 | config DVB_USB_CXUSB | 98 | config DVB_USB_CXUSB |
99 | tristate "Conexant USB2.0 hybrid reference design support" | 99 | tristate "Conexant USB2.0 hybrid reference design support" |
100 | depends on DVB_USB | 100 | depends on DVB_USB |
101 | select DVB_PLL | 101 | select DVB_PLL if !DVB_FE_CUSTOMISE |
102 | select DVB_CX22702 if !DVB_FE_CUSTOMISE | 102 | select DVB_CX22702 if !DVB_FE_CUSTOMISE |
103 | select DVB_LGDT330X if !DVB_FE_CUSTOMISE | 103 | select DVB_LGDT330X if !DVB_FE_CUSTOMISE |
104 | select DVB_MT352 if !DVB_FE_CUSTOMISE | 104 | select DVB_MT352 if !DVB_FE_CUSTOMISE |
@@ -142,7 +142,7 @@ config DVB_USB_AU6610 | |||
142 | config DVB_USB_DIGITV | 142 | config DVB_USB_DIGITV |
143 | tristate "Nebula Electronics uDigiTV DVB-T USB2.0 support" | 143 | tristate "Nebula Electronics uDigiTV DVB-T USB2.0 support" |
144 | depends on DVB_USB | 144 | depends on DVB_USB |
145 | select DVB_PLL | 145 | select DVB_PLL if !DVB_FE_CUSTOMISE |
146 | select DVB_NXT6000 if !DVB_FE_CUSTOMISE | 146 | select DVB_NXT6000 if !DVB_FE_CUSTOMISE |
147 | select DVB_MT352 if !DVB_FE_CUSTOMISE | 147 | select DVB_MT352 if !DVB_FE_CUSTOMISE |
148 | help | 148 | help |
@@ -188,6 +188,7 @@ config DVB_USB_NOVA_T_USB2 | |||
188 | depends on DVB_USB | 188 | depends on DVB_USB |
189 | select DVB_DIB3000MC | 189 | select DVB_DIB3000MC |
190 | select DVB_TUNER_MT2060 if !DVB_FE_CUSTOMISE | 190 | select DVB_TUNER_MT2060 if !DVB_FE_CUSTOMISE |
191 | select DVB_PLL if !DVB_FE_CUSTOMISE | ||
191 | help | 192 | help |
192 | Say Y here to support the Hauppauge WinTV-NOVA-T usb2 DVB-T USB2.0 receiver. | 193 | Say Y here to support the Hauppauge WinTV-NOVA-T usb2 DVB-T USB2.0 receiver. |
193 | 194 | ||
@@ -216,6 +217,7 @@ config DVB_USB_OPERA1 | |||
216 | tristate "Opera1 DVB-S USB2.0 receiver" | 217 | tristate "Opera1 DVB-S USB2.0 receiver" |
217 | depends on DVB_USB | 218 | depends on DVB_USB |
218 | select DVB_STV0299 if !DVB_FE_CUSTOMISE | 219 | select DVB_STV0299 if !DVB_FE_CUSTOMISE |
220 | select DVB_PLL if !DVB_FE_CUSTOMISE | ||
219 | help | 221 | help |
220 | Say Y here to support the Opera DVB-S USB2.0 receiver. | 222 | Say Y here to support the Opera DVB-S USB2.0 receiver. |
221 | 223 | ||
diff --git a/drivers/media/dvb/dvb-usb/cxusb.c b/drivers/media/dvb/dvb-usb/cxusb.c index 88aeb2512212..04e31cf7d530 100644 --- a/drivers/media/dvb/dvb-usb/cxusb.c +++ b/drivers/media/dvb/dvb-usb/cxusb.c | |||
@@ -355,34 +355,34 @@ static struct mt352_config cxusb_mt352_config = { | |||
355 | static int cxusb_fmd1216me_tuner_attach(struct dvb_usb_adapter *adap) | 355 | static int cxusb_fmd1216me_tuner_attach(struct dvb_usb_adapter *adap) |
356 | { | 356 | { |
357 | dvb_attach(dvb_pll_attach, adap->fe, 0x61, &adap->dev->i2c_adap, | 357 | dvb_attach(dvb_pll_attach, adap->fe, 0x61, &adap->dev->i2c_adap, |
358 | &dvb_pll_fmd1216me); | 358 | DVB_PLL_FMD1216ME); |
359 | return 0; | 359 | return 0; |
360 | } | 360 | } |
361 | 361 | ||
362 | static int cxusb_dee1601_tuner_attach(struct dvb_usb_adapter *adap) | 362 | static int cxusb_dee1601_tuner_attach(struct dvb_usb_adapter *adap) |
363 | { | 363 | { |
364 | dvb_attach(dvb_pll_attach, adap->fe, 0x61, | 364 | dvb_attach(dvb_pll_attach, adap->fe, 0x61, |
365 | NULL, &dvb_pll_thomson_dtt7579); | 365 | NULL, DVB_PLL_THOMSON_DTT7579); |
366 | return 0; | 366 | return 0; |
367 | } | 367 | } |
368 | 368 | ||
369 | static int cxusb_lgz201_tuner_attach(struct dvb_usb_adapter *adap) | 369 | static int cxusb_lgz201_tuner_attach(struct dvb_usb_adapter *adap) |
370 | { | 370 | { |
371 | dvb_attach(dvb_pll_attach, adap->fe, 0x61, NULL, &dvb_pll_lg_z201); | 371 | dvb_attach(dvb_pll_attach, adap->fe, 0x61, NULL, DVB_PLL_LG_Z201); |
372 | return 0; | 372 | return 0; |
373 | } | 373 | } |
374 | 374 | ||
375 | static int cxusb_dtt7579_tuner_attach(struct dvb_usb_adapter *adap) | 375 | static int cxusb_dtt7579_tuner_attach(struct dvb_usb_adapter *adap) |
376 | { | 376 | { |
377 | dvb_attach(dvb_pll_attach, adap->fe, 0x60, | 377 | dvb_attach(dvb_pll_attach, adap->fe, 0x60, |
378 | NULL, &dvb_pll_thomson_dtt7579); | 378 | NULL, DVB_PLL_THOMSON_DTT7579); |
379 | return 0; | 379 | return 0; |
380 | } | 380 | } |
381 | 381 | ||
382 | static int cxusb_lgh064f_tuner_attach(struct dvb_usb_adapter *adap) | 382 | static int cxusb_lgh064f_tuner_attach(struct dvb_usb_adapter *adap) |
383 | { | 383 | { |
384 | dvb_attach(dvb_pll_attach, adap->fe, 0x61, &adap->dev->i2c_adap, | 384 | dvb_attach(dvb_pll_attach, adap->fe, 0x61, &adap->dev->i2c_adap, |
385 | &dvb_pll_lg_tdvs_h06xf); | 385 | DVB_PLL_LG_TDVS_H06XF); |
386 | return 0; | 386 | return 0; |
387 | } | 387 | } |
388 | 388 | ||
diff --git a/drivers/media/dvb/dvb-usb/dibusb-common.c b/drivers/media/dvb/dvb-usb/dibusb-common.c index 5143e426d283..9a184da01c47 100644 --- a/drivers/media/dvb/dvb-usb/dibusb-common.c +++ b/drivers/media/dvb/dvb-usb/dibusb-common.c | |||
@@ -295,7 +295,7 @@ int dibusb_dib3000mc_tuner_attach(struct dvb_usb_adapter *adap) | |||
295 | tun_i2c = dib3000mc_get_tuner_i2c_master(adap->fe, 1); | 295 | tun_i2c = dib3000mc_get_tuner_i2c_master(adap->fe, 1); |
296 | if (dvb_attach(mt2060_attach, adap->fe, tun_i2c, &stk3000p_mt2060_config, if1) == NULL) { | 296 | if (dvb_attach(mt2060_attach, adap->fe, tun_i2c, &stk3000p_mt2060_config, if1) == NULL) { |
297 | /* not found - use panasonic pll parameters */ | 297 | /* not found - use panasonic pll parameters */ |
298 | if (dvb_attach(dvb_pll_attach, adap->fe, 0x60, tun_i2c, &dvb_pll_env57h1xd5) == NULL) | 298 | if (dvb_attach(dvb_pll_attach, adap->fe, 0x60, tun_i2c, DVB_PLL_ENV57H1XD5) == NULL) |
299 | return -ENOMEM; | 299 | return -ENOMEM; |
300 | } else { | 300 | } else { |
301 | st->mt2060_present = 1; | 301 | st->mt2060_present = 1; |
diff --git a/drivers/media/dvb/dvb-usb/dibusb-mb.c b/drivers/media/dvb/dvb-usb/dibusb-mb.c index 67cd48425d46..4cf7bbc7f6a4 100644 --- a/drivers/media/dvb/dvb-usb/dibusb-mb.c +++ b/drivers/media/dvb/dvb-usb/dibusb-mb.c | |||
@@ -45,7 +45,7 @@ static int dibusb_thomson_tuner_attach(struct dvb_usb_adapter *adap) | |||
45 | st->tuner_addr = 0x61; | 45 | st->tuner_addr = 0x61; |
46 | 46 | ||
47 | dvb_attach(dvb_pll_attach, adap->fe, 0x61, &adap->dev->i2c_adap, | 47 | dvb_attach(dvb_pll_attach, adap->fe, 0x61, &adap->dev->i2c_adap, |
48 | &dvb_pll_tua6010xs); | 48 | DVB_PLL_TUA6010XS); |
49 | return 0; | 49 | return 0; |
50 | } | 50 | } |
51 | 51 | ||
@@ -56,7 +56,7 @@ static int dibusb_panasonic_tuner_attach(struct dvb_usb_adapter *adap) | |||
56 | st->tuner_addr = 0x60; | 56 | st->tuner_addr = 0x60; |
57 | 57 | ||
58 | dvb_attach(dvb_pll_attach, adap->fe, 0x60, &adap->dev->i2c_adap, | 58 | dvb_attach(dvb_pll_attach, adap->fe, 0x60, &adap->dev->i2c_adap, |
59 | &dvb_pll_tda665x); | 59 | DVB_PLL_TDA665X); |
60 | return 0; | 60 | return 0; |
61 | } | 61 | } |
62 | 62 | ||
diff --git a/drivers/media/dvb/dvb-usb/digitv.c b/drivers/media/dvb/dvb-usb/digitv.c index 36e0f8fee37a..bca1e0905739 100644 --- a/drivers/media/dvb/dvb-usb/digitv.c +++ b/drivers/media/dvb/dvb-usb/digitv.c | |||
@@ -148,7 +148,7 @@ static int digitv_tuner_attach(struct dvb_usb_adapter *adap) | |||
148 | { | 148 | { |
149 | struct digitv_state *st = adap->dev->priv; | 149 | struct digitv_state *st = adap->dev->priv; |
150 | 150 | ||
151 | if (!dvb_attach(dvb_pll_attach, adap->fe, 0x60, NULL, &dvb_pll_tded4)) | 151 | if (!dvb_attach(dvb_pll_attach, adap->fe, 0x60, NULL, DVB_PLL_TDED4)) |
152 | return -ENODEV; | 152 | return -ENODEV; |
153 | 153 | ||
154 | if (st->is_nxt6000) | 154 | if (st->is_nxt6000) |
diff --git a/drivers/media/dvb/dvb-usb/opera1.c b/drivers/media/dvb/dvb-usb/opera1.c index 518d7ad217df..ee6bf29223ff 100644 --- a/drivers/media/dvb/dvb-usb/opera1.c +++ b/drivers/media/dvb/dvb-usb/opera1.c | |||
@@ -263,7 +263,7 @@ static int opera1_tuner_attach(struct dvb_usb_adapter *adap) | |||
263 | { | 263 | { |
264 | dvb_attach( | 264 | dvb_attach( |
265 | dvb_pll_attach, adap->fe, 0xc0>>1, | 265 | dvb_pll_attach, adap->fe, 0xc0>>1, |
266 | &adap->dev->i2c_adap, &dvb_pll_opera1 | 266 | &adap->dev->i2c_adap, DVB_PLL_OPERA1 |
267 | ); | 267 | ); |
268 | return 0; | 268 | return 0; |
269 | } | 269 | } |
diff --git a/drivers/media/dvb/dvb-usb/umt-010.c b/drivers/media/dvb/dvb-usb/umt-010.c index 9705e9c64f81..0dcab3d4e236 100644 --- a/drivers/media/dvb/dvb-usb/umt-010.c +++ b/drivers/media/dvb/dvb-usb/umt-010.c | |||
@@ -65,7 +65,7 @@ static int umt_mt352_frontend_attach(struct dvb_usb_adapter *adap) | |||
65 | 65 | ||
66 | static int umt_tuner_attach (struct dvb_usb_adapter *adap) | 66 | static int umt_tuner_attach (struct dvb_usb_adapter *adap) |
67 | { | 67 | { |
68 | dvb_attach(dvb_pll_attach, adap->fe, 0x61, NULL, &dvb_pll_tua6034); | 68 | dvb_attach(dvb_pll_attach, adap->fe, 0x61, NULL, DVB_PLL_TUA6034); |
69 | return 0; | 69 | return 0; |
70 | } | 70 | } |
71 | 71 | ||