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/frontends/dvb-pll.h | |
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/frontends/dvb-pll.h')
-rw-r--r-- | drivers/media/dvb/frontends/dvb-pll.h | 69 |
1 files changed, 25 insertions, 44 deletions
diff --git a/drivers/media/dvb/frontends/dvb-pll.h b/drivers/media/dvb/frontends/dvb-pll.h index a88ec86bd3b2..66464e1e1a00 100644 --- a/drivers/media/dvb/frontends/dvb-pll.h +++ b/drivers/media/dvb/frontends/dvb-pll.h | |||
@@ -8,47 +8,28 @@ | |||
8 | #include <linux/i2c.h> | 8 | #include <linux/i2c.h> |
9 | #include "dvb_frontend.h" | 9 | #include "dvb_frontend.h" |
10 | 10 | ||
11 | struct dvb_pll_desc { | 11 | #define DVB_PLL_UNDEFINED 0 |
12 | char *name; | 12 | #define DVB_PLL_THOMSON_DTT7579 1 |
13 | u32 min; | 13 | #define DVB_PLL_THOMSON_DTT759X 2 |
14 | u32 max; | 14 | #define DVB_PLL_THOMSON_DTT7610 3 |
15 | u32 iffreq; | 15 | #define DVB_PLL_LG_Z201 4 |
16 | void (*set)(u8 *buf, const struct dvb_frontend_parameters *params); | 16 | #define DVB_PLL_MICROTUNE_4042 5 |
17 | u8 *initdata; | 17 | #define DVB_PLL_THOMSON_DTT761X 6 |
18 | u8 *sleepdata; | 18 | #define DVB_PLL_UNKNOWN_1 7 |
19 | int count; | 19 | #define DVB_PLL_TUA6010XS 8 |
20 | struct { | 20 | #define DVB_PLL_ENV57H1XD5 9 |
21 | u32 limit; | 21 | #define DVB_PLL_TUA6034 10 |
22 | u32 stepsize; | 22 | #define DVB_PLL_LG_TDVS_H06XF 11 |
23 | u8 config; | 23 | #define DVB_PLL_TDA665X 12 |
24 | u8 cb; | 24 | #define DVB_PLL_FMD1216ME 13 |
25 | } entries[12]; | 25 | #define DVB_PLL_TDED4 14 |
26 | }; | 26 | #define DVB_PLL_TUV1236D 15 |
27 | 27 | #define DVB_PLL_TDHU2 16 | |
28 | extern struct dvb_pll_desc dvb_pll_thomson_dtt7579; | 28 | #define DVB_PLL_SAMSUNG_TBMV 17 |
29 | extern struct dvb_pll_desc dvb_pll_thomson_dtt759x; | 29 | #define DVB_PLL_PHILIPS_SD1878_TDA8261 18 |
30 | extern struct dvb_pll_desc dvb_pll_thomson_dtt7610; | 30 | #define DVB_PLL_PHILIPS_TD1316 19 |
31 | extern struct dvb_pll_desc dvb_pll_lg_z201; | 31 | #define DVB_PLL_THOMSON_FE6600 20 |
32 | extern struct dvb_pll_desc dvb_pll_microtune_4042; | 32 | #define DVB_PLL_OPERA1 21 |
33 | extern struct dvb_pll_desc dvb_pll_thomson_dtt761x; | ||
34 | extern struct dvb_pll_desc dvb_pll_unknown_1; | ||
35 | |||
36 | extern struct dvb_pll_desc dvb_pll_tua6010xs; | ||
37 | extern struct dvb_pll_desc dvb_pll_env57h1xd5; | ||
38 | extern struct dvb_pll_desc dvb_pll_tua6034; | ||
39 | extern struct dvb_pll_desc dvb_pll_lg_tdvs_h06xf; | ||
40 | extern struct dvb_pll_desc dvb_pll_tda665x; | ||
41 | extern struct dvb_pll_desc dvb_pll_fmd1216me; | ||
42 | extern struct dvb_pll_desc dvb_pll_tded4; | ||
43 | |||
44 | extern struct dvb_pll_desc dvb_pll_tuv1236d; | ||
45 | extern struct dvb_pll_desc dvb_pll_tdhu2; | ||
46 | extern struct dvb_pll_desc dvb_pll_samsung_tbmv; | ||
47 | extern struct dvb_pll_desc dvb_pll_philips_sd1878_tda8261; | ||
48 | extern struct dvb_pll_desc dvb_pll_philips_td1316; | ||
49 | |||
50 | extern struct dvb_pll_desc dvb_pll_thomson_fe6600; | ||
51 | extern struct dvb_pll_desc dvb_pll_opera1; | ||
52 | 33 | ||
53 | /** | 34 | /** |
54 | * Attach a dvb-pll to the supplied frontend structure. | 35 | * Attach a dvb-pll to the supplied frontend structure. |
@@ -56,19 +37,19 @@ extern struct dvb_pll_desc dvb_pll_opera1; | |||
56 | * @param fe Frontend to attach to. | 37 | * @param fe Frontend to attach to. |
57 | * @param pll_addr i2c address of the PLL (if used). | 38 | * @param pll_addr i2c address of the PLL (if used). |
58 | * @param i2c i2c adapter to use (set to NULL if not used). | 39 | * @param i2c i2c adapter to use (set to NULL if not used). |
59 | * @param desc dvb_pll_desc to use. | 40 | * @param pll_desc_id dvb_pll_desc to use. |
60 | * @return Frontend pointer on success, NULL on failure | 41 | * @return Frontend pointer on success, NULL on failure |
61 | */ | 42 | */ |
62 | #if defined(CONFIG_DVB_PLL) || (defined(CONFIG_DVB_PLL_MODULE) && defined(MODULE)) | 43 | #if defined(CONFIG_DVB_PLL) || (defined(CONFIG_DVB_PLL_MODULE) && defined(MODULE)) |
63 | extern struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe, | 44 | extern struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe, |
64 | int pll_addr, | 45 | int pll_addr, |
65 | struct i2c_adapter *i2c, | 46 | struct i2c_adapter *i2c, |
66 | struct dvb_pll_desc *desc); | 47 | unsigned int pll_desc_id); |
67 | #else | 48 | #else |
68 | static inline struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe, | 49 | static inline struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe, |
69 | int pll_addr, | 50 | int pll_addr, |
70 | struct i2c_adapter *i2c, | 51 | struct i2c_adapter *i2c, |
71 | struct dvb_pll_desc *desc) | 52 | unsigned int pll_desc_id) |
72 | { | 53 | { |
73 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__); | 54 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__); |
74 | return NULL; | 55 | return NULL; |