Skip to content

Commit

Permalink
[PATCH] drivers/isdn/hardware/eicon/: convert to generic boolean-values
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se>
Acked-by: Karsten Keil <kkeil@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Richard Knutsson authored and Linus Torvalds committed Feb 12, 2007
1 parent 2a8081f commit 986c4bb
Show file tree
Hide file tree
Showing 5 changed files with 192 additions and 200 deletions.
4 changes: 2 additions & 2 deletions drivers/isdn/hardware/eicon/capifunc.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ static diva_card *find_card_by_ctrl(word controller)
*/
void *TransmitBufferSet(APPL * appl, dword ref)
{
appl->xbuffer_used[ref] = TRUE;
appl->xbuffer_used[ref] = true;
DBG_PRV1(("%d:xbuf_used(%d)", appl->Id, ref + 1))
return (void *) ref;
}
Expand All @@ -202,7 +202,7 @@ void *TransmitBufferGet(APPL * appl, void *p)

void TransmitBufferFree(APPL * appl, void *p)
{
appl->xbuffer_used[(dword) p] = FALSE;
appl->xbuffer_used[(dword) p] = false;
DBG_PRV1(("%d:xbuf_free(%d)", appl->Id, ((dword) p) + 1))
}

Expand Down
16 changes: 8 additions & 8 deletions drivers/isdn/hardware/eicon/di.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,16 +173,16 @@ void pr_out(ADAPTER * a)
xdi_xlog_request (XDI_A_NR(a), this->Id, this->ReqCh, this->MInd,
a->IdTypeTable[this->No]);
a->ram_out(a, &ReqOut->Req, this->MInd);
more = TRUE;
more = true;
}
else {
xdi_xlog_request (XDI_A_NR(a), this->Id, this->ReqCh, this->Req,
a->IdTypeTable[this->No]);
this->More |=XMOREF;
a->ram_out(a, &ReqOut->Req, this->Req);
more = FALSE;
more = false;
if (a->FlowControlIdTable[this->ReqCh] == this->Id)
a->FlowControlSkipTable[this->ReqCh] = TRUE;
a->FlowControlSkipTable[this->ReqCh] = true;
/*
Note that remove request was sent to the card
*/
Expand Down Expand Up @@ -311,7 +311,7 @@ byte pr_dpc(ADAPTER * a)
/* are marked RNR */
if(RNRId && RNRId==a->ram_in(a, &IndIn->IndId)) {
a->ram_out(a, &IndIn->Ind, 0);
a->ram_out(a, &IndIn->RNR, TRUE);
a->ram_out(a, &IndIn->RNR, true);
}
else {
Ind = a->ram_in(a, &IndIn->Ind);
Expand All @@ -331,7 +331,7 @@ byte pr_dpc(ADAPTER * a)
dtrc(dprintf("RNR"));
a->ram_out(a, &IndIn->Ind, 0);
RNRId = a->ram_in(a, &IndIn->IndId);
a->ram_out(a, &IndIn->RNR, TRUE);
a->ram_out(a, &IndIn->RNR, true);
}
}
}
Expand All @@ -340,7 +340,7 @@ byte pr_dpc(ADAPTER * a)
}
a->ram_out(a, &PR_RAM->IndOutput, 0);
}
return FALSE;
return false;
}
byte scom_test_int(ADAPTER * a)
{
Expand Down Expand Up @@ -399,7 +399,7 @@ byte isdn_rc(ADAPTER * a,
return (0);
}
if (extended_info_type == DIVA_RC_TYPE_REMOVE_COMPLETE)
a->RcExtensionSupported = TRUE;
a->RcExtensionSupported = true;
}
a->misc_flags_table[e_no] &= ~DIVA_MISC_FLAGS_REMOVE_PENDING;
a->misc_flags_table[e_no] &= ~DIVA_MISC_FLAGS_NO_RC_CANCELLING;
Expand Down Expand Up @@ -428,7 +428,7 @@ byte isdn_rc(ADAPTER * a,
}
if (Rc==OK_FC) {
a->FlowControlIdTable[Ch] = Id;
a->FlowControlSkipTable[Ch] = FALSE;
a->FlowControlSkipTable[Ch] = false;
this->Rc = Rc;
this->More &= ~(XBUSY | XMOREC);
this->complete=0xff;
Expand Down
Loading

0 comments on commit 986c4bb

Please sign in to comment.