diff options
author | Adrian Bunk <bunk@stusta.de> | 2005-06-25 17:59:18 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-25 19:25:07 -0400 |
commit | 672c3fd9069e5a138f9d4afc9aeb5aa34aacce32 (patch) | |
tree | eed95f7e577680c4a92e7f22b22b221b53934fd1 /drivers/isdn/hisax/elsa_ser.c | |
parent | 8b3d4a2a3ef9488d4477e8823106abfd6039eb66 (diff) |
[PATCH] drivers/isdn/hisax/: possible cleanups
This patch contains the following possible cleanups:
- make needlessly global code static
- remove the compiled but unused st5481_hdlc.{c,h}
- kill enternow.h
- enternow_pci.c: kill InByte/OutByte/BYTE
- isdnl2.c: kill FreeSkb
- remove or #if 0 the following unused functions:
- config.c: IsdnCardState
- ipacx.c: ipacx_new_ph
- ipacx.c: dch_bh
- ipacx.c: setup_ipacx
- isdnl2.c: IsRR
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Acked-by: Kai Germaschewski <kai@germaschewski.name>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/isdn/hisax/elsa_ser.c')
-rw-r--r-- | drivers/isdn/hisax/elsa_ser.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/isdn/hisax/elsa_ser.c b/drivers/isdn/hisax/elsa_ser.c index 689c83395693..898ec0916195 100644 --- a/drivers/isdn/hisax/elsa_ser.c +++ b/drivers/isdn/hisax/elsa_ser.c | |||
@@ -237,7 +237,7 @@ static void mshutdown(struct IsdnCardState *cs) | |||
237 | #endif | 237 | #endif |
238 | } | 238 | } |
239 | 239 | ||
240 | inline int | 240 | static inline int |
241 | write_modem(struct BCState *bcs) { | 241 | write_modem(struct BCState *bcs) { |
242 | int ret=0; | 242 | int ret=0; |
243 | struct IsdnCardState *cs = bcs->cs; | 243 | struct IsdnCardState *cs = bcs->cs; |
@@ -275,7 +275,7 @@ write_modem(struct BCState *bcs) { | |||
275 | return(ret); | 275 | return(ret); |
276 | } | 276 | } |
277 | 277 | ||
278 | inline void | 278 | static inline void |
279 | modem_fill(struct BCState *bcs) { | 279 | modem_fill(struct BCState *bcs) { |
280 | 280 | ||
281 | if (bcs->tx_skb) { | 281 | if (bcs->tx_skb) { |
@@ -422,7 +422,7 @@ extern int open_hscxstate(struct IsdnCardState *cs, struct BCState *bcs); | |||
422 | extern void modehscx(struct BCState *bcs, int mode, int bc); | 422 | extern void modehscx(struct BCState *bcs, int mode, int bc); |
423 | extern void hscx_l2l1(struct PStack *st, int pr, void *arg); | 423 | extern void hscx_l2l1(struct PStack *st, int pr, void *arg); |
424 | 424 | ||
425 | void | 425 | static void |
426 | close_elsastate(struct BCState *bcs) | 426 | close_elsastate(struct BCState *bcs) |
427 | { | 427 | { |
428 | modehscx(bcs, 0, bcs->channel); | 428 | modehscx(bcs, 0, bcs->channel); |
@@ -442,7 +442,7 @@ close_elsastate(struct BCState *bcs) | |||
442 | } | 442 | } |
443 | } | 443 | } |
444 | 444 | ||
445 | void | 445 | static void |
446 | modem_write_cmd(struct IsdnCardState *cs, u_char *buf, int len) { | 446 | modem_write_cmd(struct IsdnCardState *cs, u_char *buf, int len) { |
447 | int count, fp; | 447 | int count, fp; |
448 | u_char *msg = buf; | 448 | u_char *msg = buf; |
@@ -472,7 +472,7 @@ modem_write_cmd(struct IsdnCardState *cs, u_char *buf, int len) { | |||
472 | } | 472 | } |
473 | } | 473 | } |
474 | 474 | ||
475 | void | 475 | static void |
476 | modem_set_init(struct IsdnCardState *cs) { | 476 | modem_set_init(struct IsdnCardState *cs) { |
477 | int timeout; | 477 | int timeout; |
478 | 478 | ||
@@ -521,7 +521,7 @@ modem_set_init(struct IsdnCardState *cs) { | |||
521 | udelay(RCV_DELAY); | 521 | udelay(RCV_DELAY); |
522 | } | 522 | } |
523 | 523 | ||
524 | void | 524 | static void |
525 | modem_set_dial(struct IsdnCardState *cs, int outgoing) { | 525 | modem_set_dial(struct IsdnCardState *cs, int outgoing) { |
526 | int timeout; | 526 | int timeout; |
527 | #define RCV_DELAY 20000 | 527 | #define RCV_DELAY 20000 |
@@ -543,7 +543,7 @@ modem_set_dial(struct IsdnCardState *cs, int outgoing) { | |||
543 | udelay(RCV_DELAY); | 543 | udelay(RCV_DELAY); |
544 | } | 544 | } |
545 | 545 | ||
546 | void | 546 | static void |
547 | modem_l2l1(struct PStack *st, int pr, void *arg) | 547 | modem_l2l1(struct PStack *st, int pr, void *arg) |
548 | { | 548 | { |
549 | struct BCState *bcs = st->l1.bcs; | 549 | struct BCState *bcs = st->l1.bcs; |
@@ -579,7 +579,7 @@ modem_l2l1(struct PStack *st, int pr, void *arg) | |||
579 | } | 579 | } |
580 | } | 580 | } |
581 | 581 | ||
582 | int | 582 | static int |
583 | setstack_elsa(struct PStack *st, struct BCState *bcs) | 583 | setstack_elsa(struct PStack *st, struct BCState *bcs) |
584 | { | 584 | { |
585 | 585 | ||
@@ -614,7 +614,7 @@ setstack_elsa(struct PStack *st, struct BCState *bcs) | |||
614 | return (0); | 614 | return (0); |
615 | } | 615 | } |
616 | 616 | ||
617 | void | 617 | static void |
618 | init_modem(struct IsdnCardState *cs) { | 618 | init_modem(struct IsdnCardState *cs) { |
619 | 619 | ||
620 | cs->bcs[0].BC_SetStack = setstack_elsa; | 620 | cs->bcs[0].BC_SetStack = setstack_elsa; |
@@ -641,7 +641,7 @@ init_modem(struct IsdnCardState *cs) { | |||
641 | modem_set_init(cs); | 641 | modem_set_init(cs); |
642 | } | 642 | } |
643 | 643 | ||
644 | void | 644 | static void |
645 | release_modem(struct IsdnCardState *cs) { | 645 | release_modem(struct IsdnCardState *cs) { |
646 | 646 | ||
647 | cs->hw.elsa.MFlag = 0; | 647 | cs->hw.elsa.MFlag = 0; |