diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-08-02 09:30:31 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-08-22 19:22:00 -0400 |
commit | 8e2fc39ddea7fe8c6798837da282db88a09af793 (patch) | |
tree | 7cba37b5b86f4ff25562012a14e29424e3872de0 /drivers/serial | |
parent | 498ac1899b62626bf6879a251d75c22ec564c559 (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')
-rw-r--r-- | drivers/serial/serial_cs.c | 4 |
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 | ||
444 | static int simple_config_check(struct pcmcia_device *p_dev, | 444 | static 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 | ||
466 | static int simple_config_check_notpicky(struct pcmcia_device *p_dev, | 467 | static 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 | ||
547 | static int multi_config_check(struct pcmcia_device *p_dev, | 549 | static 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 | ||
566 | static int multi_config_check_notpicky(struct pcmcia_device *p_dev, | 569 | static 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; |