aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/hardware/mISDN/hfcmulti.c
diff options
context:
space:
mode:
authorKarsten Keil <kkeil@suse.de>2008-07-30 12:26:58 -0400
committerKarsten Keil <kkeil@suse.de>2008-08-02 10:28:50 -0400
commitff4cc1de2401ad44ae084c3f5a9e898af0879520 (patch)
tree24e0e3d1b8a35559546910a0ca0cd1f9f63f1576 /drivers/isdn/hardware/mISDN/hfcmulti.c
parent780aefed1e179b23dcfbd6cfcb627ec3bd0a164c (diff)
mISDN cleanup user interface
The channelmap should have the same size on 32 and 64 bit systems and should not depend on endianess. Thanks to David Woodhouse for spotting this. Signed-off-by: Karsten Keil <kkeil@suse.de>
Diffstat (limited to 'drivers/isdn/hardware/mISDN/hfcmulti.c')
-rw-r--r--drivers/isdn/hardware/mISDN/hfcmulti.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/isdn/hardware/mISDN/hfcmulti.c b/drivers/isdn/hardware/mISDN/hfcmulti.c
index 2649ea55a9e..10144e871c0 100644
--- a/drivers/isdn/hardware/mISDN/hfcmulti.c
+++ b/drivers/isdn/hardware/mISDN/hfcmulti.c
@@ -3971,7 +3971,7 @@ open_bchannel(struct hfc_multi *hc, struct dchannel *dch,
3971 struct bchannel *bch; 3971 struct bchannel *bch;
3972 int ch; 3972 int ch;
3973 3973
3974 if (!test_bit(rq->adr.channel, &dch->dev.channelmap[0])) 3974 if (!test_channelmap(rq->adr.channel, dch->dev.channelmap))
3975 return -EINVAL; 3975 return -EINVAL;
3976 if (rq->protocol == ISDN_P_NONE) 3976 if (rq->protocol == ISDN_P_NONE)
3977 return -EINVAL; 3977 return -EINVAL;
@@ -4587,7 +4587,7 @@ init_e1_port(struct hfc_multi *hc, struct hm_map *m)
4587 list_add(&bch->ch.list, &dch->dev.bchannels); 4587 list_add(&bch->ch.list, &dch->dev.bchannels);
4588 hc->chan[ch].bch = bch; 4588 hc->chan[ch].bch = bch;
4589 hc->chan[ch].port = 0; 4589 hc->chan[ch].port = 0;
4590 test_and_set_bit(bch->nr, &dch->dev.channelmap[0]); 4590 set_channelmap(bch->nr, dch->dev.channelmap);
4591 } 4591 }
4592 /* set optical line type */ 4592 /* set optical line type */
4593 if (port[Port_cnt] & 0x001) { 4593 if (port[Port_cnt] & 0x001) {
@@ -4755,7 +4755,7 @@ init_multi_port(struct hfc_multi *hc, int pt)
4755 list_add(&bch->ch.list, &dch->dev.bchannels); 4755 list_add(&bch->ch.list, &dch->dev.bchannels);
4756 hc->chan[i + ch].bch = bch; 4756 hc->chan[i + ch].bch = bch;
4757 hc->chan[i + ch].port = pt; 4757 hc->chan[i + ch].port = pt;
4758 test_and_set_bit(bch->nr, &dch->dev.channelmap[0]); 4758 set_channelmap(bch->nr, dch->dev.channelmap);
4759 } 4759 }
4760 /* set master clock */ 4760 /* set master clock */
4761 if (port[Port_cnt] & 0x001) { 4761 if (port[Port_cnt] & 0x001) {