isdn: rename capi_ctr_reseted() to capi_ctr_down()
authorTilman Schmidt <tilman@imap.cc>
Sun, 7 Jun 2009 09:09:23 +0000 (09:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Jun 2009 07:45:50 +0000 (00:45 -0700)
Change the name of the Kernel CAPI exported function capi_ctr_reseted()
to something representing its purpose better.

Impact: renaming, no functional change
Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/isdn/INTERFACE.CAPI
drivers/isdn/capi/kcapi.c
drivers/isdn/hardware/avm/b1.c
drivers/isdn/hardware/avm/b1dma.c
drivers/isdn/hardware/avm/c4.c
drivers/isdn/hardware/avm/t1isa.c
drivers/isdn/hysdn/hycapi.c
include/linux/isdn/capilli.h
net/bluetooth/cmtp/capi.c

index 786d619b36e5164f1ded06f149360772c7a8e34b..463153816162a55f2b9d32892fadce5eece0e74d 100644 (file)
@@ -45,7 +45,7 @@ From then on, Kernel CAPI may call the registered callback functions for the
 device.
 
 If the device becomes unusable for any reason (shutdown, disconnect ...), the
-driver has to call capi_ctr_reseted(). This will prevent further calls to the
+driver has to call capi_ctr_down(). This will prevent further calls to the
 callback functions by Kernel CAPI.
 
 
@@ -166,7 +166,7 @@ int detach_capi_ctr(struct capi_ctr *ctrlr)
        register/unregister a device (controller) with Kernel CAPI
 
 void capi_ctr_ready(struct capi_ctr *ctrlr)
-void capi_ctr_reseted(struct capi_ctr *ctrlr)
+void capi_ctr_down(struct capi_ctr *ctrlr)
        signal controller ready/not ready
 
 void capi_ctr_suspend_output(struct capi_ctr *ctrlr)
index f33170368cd1755dd390900014789598557b9a2a..57d26360f64e38f13a09591a1fec08da76bfa115 100644 (file)
@@ -377,14 +377,14 @@ void capi_ctr_ready(struct capi_ctr * card)
 EXPORT_SYMBOL(capi_ctr_ready);
 
 /**
- * capi_ctr_reseted() - signal CAPI controller reset
+ * capi_ctr_down() - signal CAPI controller not ready
  * @card:      controller descriptor structure.
  *
  * Called by hardware driver to signal that the controller is down and
  * unavailable for use.
  */
 
-void capi_ctr_reseted(struct capi_ctr * card)
+void capi_ctr_down(struct capi_ctr * card)
 {
        u16 appl;
 
@@ -413,7 +413,7 @@ void capi_ctr_reseted(struct capi_ctr * card)
        notify_push(KCI_CONTRDOWN, card->cnr, 0, 0);
 }
 
-EXPORT_SYMBOL(capi_ctr_reseted);
+EXPORT_SYMBOL(capi_ctr_down);
 
 /**
  * capi_ctr_suspend_output() - suspend controller
@@ -517,7 +517,7 @@ EXPORT_SYMBOL(attach_capi_ctr);
 int detach_capi_ctr(struct capi_ctr *card)
 {
         if (card->cardstate != CARD_DETECTED)
-               capi_ctr_reseted(card);
+               capi_ctr_down(card);
 
        ncards--;
 
index abf05ec31760544b41928a84cb7286b58c6ac95b..a7c0083e78a7bc063e03505bc36ae2f5864ace44 100644 (file)
@@ -330,7 +330,7 @@ void b1_reset_ctr(struct capi_ctr *ctrl)
        spin_lock_irqsave(&card->lock, flags);
        capilib_release(&cinfo->ncci_head);
        spin_unlock_irqrestore(&card->lock, flags);
-       capi_ctr_reseted(ctrl);
+       capi_ctr_down(ctrl);
 }
 
 void b1_register_appl(struct capi_ctr *ctrl,
index da34b98e3de7425b0ed647a3224e5b1f4d035195..0e84aaae43fd430f1ca2a3a41a357e40f452e8c8 100644 (file)
@@ -759,7 +759,7 @@ void b1dma_reset_ctr(struct capi_ctr *ctrl)
        memset(cinfo->version, 0, sizeof(cinfo->version));
        capilib_release(&cinfo->ncci_head);
        spin_unlock_irqrestore(&card->lock, flags);
-       capi_ctr_reseted(ctrl);
+       capi_ctr_down(ctrl);
 }
 
 /* ------------------------------------------------------------- */
index 9df1d3f66c879e750201e9e16f8d8cbf4d14ccbb..6833301a45fc604f11a9f6833d852fe069c7bfaf 100644 (file)
@@ -681,7 +681,7 @@ static irqreturn_t c4_handle_interrupt(avmcard *card)
                        spin_lock_irqsave(&card->lock, flags);
                        capilib_release(&cinfo->ncci_head);
                        spin_unlock_irqrestore(&card->lock, flags);
-                       capi_ctr_reseted(&cinfo->capi_ctrl);
+                       capi_ctr_down(&cinfo->capi_ctrl);
                }
                card->nlogcontr = 0;
                return IRQ_HANDLED;
@@ -909,7 +909,7 @@ static void c4_reset_ctr(struct capi_ctr *ctrl)
         for (i=0; i < card->nr_controllers; i++) {
                cinfo = &card->ctrlinfo[i];
                memset(cinfo->version, 0, sizeof(cinfo->version));
-               capi_ctr_reseted(&cinfo->capi_ctrl);
+               capi_ctr_down(&cinfo->capi_ctrl);
        }
        card->nlogcontr = 0;
 }
index e7724493738c4673f14d49c039e94f28c9e3ada8..1c53fd49adb6e36f35445c9a86d76e6b9e70eaaa 100644 (file)
@@ -339,7 +339,7 @@ static void t1isa_reset_ctr(struct capi_ctr *ctrl)
        spin_lock_irqsave(&card->lock, flags);
        capilib_release(&cinfo->ncci_head);
        spin_unlock_irqrestore(&card->lock, flags);
-       capi_ctr_reseted(ctrl);
+       capi_ctr_down(ctrl);
 }
 
 static void t1isa_remove(struct pci_dev *pdev)
index 53f6ad1235db652d02fb62e8821db4a297535941..4ffaa14b9fc4fd92a47a083b0521207471be7977 100644 (file)
@@ -67,7 +67,7 @@ hycapi_reset_ctr(struct capi_ctr *ctrl)
        printk(KERN_NOTICE "HYCAPI hycapi_reset_ctr\n");
 #endif
        capilib_release(&cinfo->ncci_head);
-       capi_ctr_reseted(ctrl);
+       capi_ctr_down(ctrl);
 }
 
 /******************************
@@ -347,7 +347,7 @@ int hycapi_capi_stop(hysdn_card *card)
        if(cinfo) {
                ctrl = &cinfo->capi_ctrl;
 /*             ctrl->suspend_output(ctrl); */
-               capi_ctr_reseted(ctrl);
+               capi_ctr_down(ctrl);
        }
        return 0;
 }
index 35e9b0fd014b9adc68b63b358fb57b0d07de2f69..7acb87a448726e91449ed1c9abee8611f04c94ac 100644 (file)
@@ -79,7 +79,7 @@ int attach_capi_ctr(struct capi_ctr *);
 int detach_capi_ctr(struct capi_ctr *);
 
 void capi_ctr_ready(struct capi_ctr * card);
-void capi_ctr_reseted(struct capi_ctr * card);
+void capi_ctr_down(struct capi_ctr * card);
 void capi_ctr_suspend_output(struct capi_ctr * card);
 void capi_ctr_resume_output(struct capi_ctr * card);
 void capi_ctr_handle_message(struct capi_ctr * card, u16 appl, struct sk_buff *skb);
index 78958c0f9a40a8e7e04e15c41074c1e47e959398..97f8d68d574daf16880a08b4396d7e1c604c7c93 100644 (file)
@@ -382,7 +382,7 @@ static void cmtp_reset_ctr(struct capi_ctr *ctrl)
 
        BT_DBG("ctrl %p", ctrl);
 
-       capi_ctr_reseted(ctrl);
+       capi_ctr_down(ctrl);
 
        atomic_inc(&session->terminate);
        cmtp_schedule(session);