Skip to content

Commit 4e32997

Browse files
tilmanschmidtdavem330
authored andcommitted
isdn: rename capi_ctr_reseted() to capi_ctr_down()
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>
1 parent f0a4d0e commit 4e32997

9 files changed

Lines changed: 15 additions & 15 deletions

File tree

‎Documentation/isdn/INTERFACE.CAPI‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ From then on, Kernel CAPI may call the registered callback functions for the
4545
device.
4646

4747
If the device becomes unusable for any reason (shutdown, disconnect ...), the
48-
driver has to call capi_ctr_reseted(). This will prevent further calls to the
48+
driver has to call capi_ctr_down(). This will prevent further calls to the
4949
callback functions by Kernel CAPI.
5050

5151

@@ -166,7 +166,7 @@ int detach_capi_ctr(struct capi_ctr *ctrlr)
166166
register/unregister a device (controller) with Kernel CAPI
167167

168168
void capi_ctr_ready(struct capi_ctr *ctrlr)
169-
void capi_ctr_reseted(struct capi_ctr *ctrlr)
169+
void capi_ctr_down(struct capi_ctr *ctrlr)
170170
signal controller ready/not ready
171171

172172
void capi_ctr_suspend_output(struct capi_ctr *ctrlr)

‎drivers/isdn/capi/kcapi.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -377,14 +377,14 @@ void capi_ctr_ready(struct capi_ctr * card)
377377
EXPORT_SYMBOL(capi_ctr_ready);
378378

379379
/**
380-
* capi_ctr_reseted() - signal CAPI controller reset
380+
* capi_ctr_down() - signal CAPI controller not ready
381381
* @card: controller descriptor structure.
382382
*
383383
* Called by hardware driver to signal that the controller is down and
384384
* unavailable for use.
385385
*/
386386

387-
void capi_ctr_reseted(struct capi_ctr * card)
387+
void capi_ctr_down(struct capi_ctr * card)
388388
{
389389
u16 appl;
390390

@@ -413,7 +413,7 @@ void capi_ctr_reseted(struct capi_ctr * card)
413413
notify_push(KCI_CONTRDOWN, card->cnr, 0, 0);
414414
}
415415

416-
EXPORT_SYMBOL(capi_ctr_reseted);
416+
EXPORT_SYMBOL(capi_ctr_down);
417417

418418
/**
419419
* capi_ctr_suspend_output() - suspend controller
@@ -517,7 +517,7 @@ EXPORT_SYMBOL(attach_capi_ctr);
517517
int detach_capi_ctr(struct capi_ctr *card)
518518
{
519519
if (card->cardstate != CARD_DETECTED)
520-
capi_ctr_reseted(card);
520+
capi_ctr_down(card);
521521

522522
ncards--;
523523

‎drivers/isdn/hardware/avm/b1.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ void b1_reset_ctr(struct capi_ctr *ctrl)
330330
spin_lock_irqsave(&card->lock, flags);
331331
capilib_release(&cinfo->ncci_head);
332332
spin_unlock_irqrestore(&card->lock, flags);
333-
capi_ctr_reseted(ctrl);
333+
capi_ctr_down(ctrl);
334334
}
335335

336336
void b1_register_appl(struct capi_ctr *ctrl,

‎drivers/isdn/hardware/avm/b1dma.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ void b1dma_reset_ctr(struct capi_ctr *ctrl)
759759
memset(cinfo->version, 0, sizeof(cinfo->version));
760760
capilib_release(&cinfo->ncci_head);
761761
spin_unlock_irqrestore(&card->lock, flags);
762-
capi_ctr_reseted(ctrl);
762+
capi_ctr_down(ctrl);
763763
}
764764

765765
/* ------------------------------------------------------------- */

‎drivers/isdn/hardware/avm/c4.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ static irqreturn_t c4_handle_interrupt(avmcard *card)
681681
spin_lock_irqsave(&card->lock, flags);
682682
capilib_release(&cinfo->ncci_head);
683683
spin_unlock_irqrestore(&card->lock, flags);
684-
capi_ctr_reseted(&cinfo->capi_ctrl);
684+
capi_ctr_down(&cinfo->capi_ctrl);
685685
}
686686
card->nlogcontr = 0;
687687
return IRQ_HANDLED;
@@ -909,7 +909,7 @@ static void c4_reset_ctr(struct capi_ctr *ctrl)
909909
for (i=0; i < card->nr_controllers; i++) {
910910
cinfo = &card->ctrlinfo[i];
911911
memset(cinfo->version, 0, sizeof(cinfo->version));
912-
capi_ctr_reseted(&cinfo->capi_ctrl);
912+
capi_ctr_down(&cinfo->capi_ctrl);
913913
}
914914
card->nlogcontr = 0;
915915
}

‎drivers/isdn/hardware/avm/t1isa.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ static void t1isa_reset_ctr(struct capi_ctr *ctrl)
339339
spin_lock_irqsave(&card->lock, flags);
340340
capilib_release(&cinfo->ncci_head);
341341
spin_unlock_irqrestore(&card->lock, flags);
342-
capi_ctr_reseted(ctrl);
342+
capi_ctr_down(ctrl);
343343
}
344344

345345
static void t1isa_remove(struct pci_dev *pdev)

‎drivers/isdn/hysdn/hycapi.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ hycapi_reset_ctr(struct capi_ctr *ctrl)
6767
printk(KERN_NOTICE "HYCAPI hycapi_reset_ctr\n");
6868
#endif
6969
capilib_release(&cinfo->ncci_head);
70-
capi_ctr_reseted(ctrl);
70+
capi_ctr_down(ctrl);
7171
}
7272

7373
/******************************
@@ -347,7 +347,7 @@ int hycapi_capi_stop(hysdn_card *card)
347347
if(cinfo) {
348348
ctrl = &cinfo->capi_ctrl;
349349
/* ctrl->suspend_output(ctrl); */
350-
capi_ctr_reseted(ctrl);
350+
capi_ctr_down(ctrl);
351351
}
352352
return 0;
353353
}

‎include/linux/isdn/capilli.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ int attach_capi_ctr(struct capi_ctr *);
7979
int detach_capi_ctr(struct capi_ctr *);
8080

8181
void capi_ctr_ready(struct capi_ctr * card);
82-
void capi_ctr_reseted(struct capi_ctr * card);
82+
void capi_ctr_down(struct capi_ctr * card);
8383
void capi_ctr_suspend_output(struct capi_ctr * card);
8484
void capi_ctr_resume_output(struct capi_ctr * card);
8585
void capi_ctr_handle_message(struct capi_ctr * card, u16 appl, struct sk_buff *skb);

‎net/bluetooth/cmtp/capi.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ static void cmtp_reset_ctr(struct capi_ctr *ctrl)
382382

383383
BT_DBG("ctrl %p", ctrl);
384384

385-
capi_ctr_reseted(ctrl);
385+
capi_ctr_down(ctrl);
386386

387387
atomic_inc(&session->terminate);
388388
cmtp_schedule(session);

0 commit comments

Comments
 (0)