aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial/serial_cs.c
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2008-08-02 09:30:31 -0400
committerDominik Brodowski <linux@dominikbrodowski.net>2008-08-22 19:22:00 -0400
commit8e2fc39ddea7fe8c6798837da282db88a09af793 (patch)
tree7cba37b5b86f4ff25562012a14e29424e3872de0 /drivers/serial/serial_cs.c
parent498ac1899b62626bf6879a251d75c22ec564c559 (diff)
pcmcia: pcmcia_config_loop() default CIS entry handling
Many drivers use the default CIS entry within their pcmcia_config_loop() callback function. Therefore, factor the default CIS entry handling out. Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/serial/serial_cs.c')
-rw-r--r--drivers/serial/serial_cs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/serial/serial_cs.c b/drivers/serial/serial_cs.c
index 693738160010..f8658686439d 100644
--- a/drivers/serial/serial_cs.c
+++ b/drivers/serial/serial_cs.c
@@ -443,6 +443,7 @@ first_tuple(struct pcmcia_device *handle, tuple_t * tuple, cisparse_t * parse)
443 443
444static int simple_config_check(struct pcmcia_device *p_dev, 444static int simple_config_check(struct pcmcia_device *p_dev,
445 cistpl_cftable_entry_t *cf, 445 cistpl_cftable_entry_t *cf,
446 cistpl_cftable_entry_t *dflt,
446 void *priv_data) 447 void *priv_data)
447{ 448{
448 static const int size_table[2] = { 8, 16 }; 449 static const int size_table[2] = { 8, 16 };
@@ -465,6 +466,7 @@ static int simple_config_check(struct pcmcia_device *p_dev,
465 466
466static int simple_config_check_notpicky(struct pcmcia_device *p_dev, 467static int simple_config_check_notpicky(struct pcmcia_device *p_dev,
467 cistpl_cftable_entry_t *cf, 468 cistpl_cftable_entry_t *cf,
469 cistpl_cftable_entry_t *dflt,
468 void *priv_data) 470 void *priv_data)
469{ 471{
470 static const unsigned int base[5] = { 0x3f8, 0x2f8, 0x3e8, 0x2e8, 0x0 }; 472 static const unsigned int base[5] = { 0x3f8, 0x2f8, 0x3e8, 0x2e8, 0x0 };
@@ -546,6 +548,7 @@ found_port:
546 548
547static int multi_config_check(struct pcmcia_device *p_dev, 549static int multi_config_check(struct pcmcia_device *p_dev,
548 cistpl_cftable_entry_t *cf, 550 cistpl_cftable_entry_t *cf,
551 cistpl_cftable_entry_t *dflt,
549 void *priv_data) 552 void *priv_data)
550{ 553{
551 int *base2 = priv_data; 554 int *base2 = priv_data;
@@ -565,6 +568,7 @@ static int multi_config_check(struct pcmcia_device *p_dev,
565 568
566static int multi_config_check_notpicky(struct pcmcia_device *p_dev, 569static int multi_config_check_notpicky(struct pcmcia_device *p_dev,
567 cistpl_cftable_entry_t *cf, 570 cistpl_cftable_entry_t *cf,
571 cistpl_cftable_entry_t *dflt,
568 void *priv_data) 572 void *priv_data)
569{ 573{
570 int *base2 = priv_data; 574 int *base2 = priv_data;