aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx88/cx88.h
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2007-08-15 13:41:58 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-09 21:05:16 -0400
commitbbc83597dfe3093b161014e6ebb351279eabaa7c (patch)
tree57514dd42f55d6dec350648a7bdaa1a3266daf68 /drivers/media/video/cx88/cx88.h
parent6a59d64c5cc302e0139ddb1f5e57afceecb14368 (diff)
V4L/DVB (6022): cx88: Move card core creation from cx88-core.c to cx88-cards.c
A lot of code in cx88-cards.c was only used by cx88-core.c when the core state is first allocated and initialized. Moving that task to cx88-cards makes the driver simpler and the files more self contained. - Module parameters tuner, radio, card, and latency move to cx88-cards.c - cx88_boards is made static - cx88_subids is made static and const - cx88_bcount is eliminated - cx88_idcount is eliminated - cx88_card_list() is made static - cx88_card_setup_pre_i2c() is made static - cx88_card_setup() is made static - cx88_pci_quirks() is moved from cx88-core to cx88-cards The function argument "char *name" is made const too - get_ressources() is moved from cx88-core to cx88-cards, and renamed to cx88_get_resources() - The code to allocate and initialize the core state struct and the chip is moved out of cx88-core.c:cx88_get_core() and into a new function in cx88-cards.c, cx88_core_create(). This makes both functions simpler. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/cx88/cx88.h')
-rw-r--r--drivers/media/video/cx88/cx88.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/media/video/cx88/cx88.h b/drivers/media/video/cx88/cx88.h
index 3636ec26de59..80e49f986fbb 100644
--- a/drivers/media/video/cx88/cx88.h
+++ b/drivers/media/video/cx88/cx88.h
@@ -580,15 +580,9 @@ extern void cx88_call_i2c_clients(struct cx88_core *core,
580/* ----------------------------------------------------------- */ 580/* ----------------------------------------------------------- */
581/* cx88-cards.c */ 581/* cx88-cards.c */
582 582
583extern const struct cx88_board cx88_boards[]; 583extern int cx88_get_resources(const struct cx88_core *core,
584extern const unsigned int cx88_bcount; 584 struct pci_dev *pci);
585 585extern struct cx88_core *cx88_core_create(struct pci_dev *pci, int nr);
586extern struct cx88_subid cx88_subids[];
587extern const unsigned int cx88_idcount;
588
589extern void cx88_card_list(struct cx88_core *core, struct pci_dev *pci);
590extern void cx88_card_setup(struct cx88_core *core);
591extern void cx88_card_setup_pre_i2c(struct cx88_core *core);
592 586
593/* ----------------------------------------------------------- */ 587/* ----------------------------------------------------------- */
594/* cx88-tvaudio.c */ 588/* cx88-tvaudio.c */