diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2006-12-08 05:36:30 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-08 11:28:40 -0500 |
commit | 17b3cff079721bbc45e9d6de2fa3edb73561e27d (patch) | |
tree | 7ff70c34ec39a1d6204b8d13cbfa11a4a355f816 /drivers/isdn/gigaset/asyncdata.c | |
parent | 0a8588578508a6c58a30ad1a7e23b285cfab49f3 (diff) |
[PATCH] isdn/gigaset: use bitrev8
Use bitrev8 for gigaset isdn driver.
Acked-by: Karsten Keil <kkeil@suse.de>
Cc: Kai Germaschewski <kai.germaschewski@gmx.de>
Acked-by: Hansjoerg Lipp <hjlipp@web.de>
Acked-by: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/isdn/gigaset/asyncdata.c')
-rw-r--r-- | drivers/isdn/gigaset/asyncdata.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/isdn/gigaset/asyncdata.c b/drivers/isdn/gigaset/asyncdata.c index ce3cd77094b3..88e958f176d2 100644 --- a/drivers/isdn/gigaset/asyncdata.c +++ b/drivers/isdn/gigaset/asyncdata.c | |||
@@ -15,6 +15,7 @@ | |||
15 | 15 | ||
16 | #include "gigaset.h" | 16 | #include "gigaset.h" |
17 | #include <linux/crc-ccitt.h> | 17 | #include <linux/crc-ccitt.h> |
18 | #include <linux/bitrev.h> | ||
18 | 19 | ||
19 | //#define GIG_M10x_STUFF_VOICE_DATA | 20 | //#define GIG_M10x_STUFF_VOICE_DATA |
20 | 21 | ||
@@ -302,7 +303,7 @@ static inline int iraw_loop(unsigned char c, unsigned char *src, int numbytes, | |||
302 | inputstate |= INS_skip_frame; | 303 | inputstate |= INS_skip_frame; |
303 | break; | 304 | break; |
304 | } | 305 | } |
305 | *__skb_put(skb, 1) = gigaset_invtab[c]; | 306 | *__skb_put(skb, 1) = bitrev8(c); |
306 | } | 307 | } |
307 | 308 | ||
308 | if (unlikely(!numbytes)) | 309 | if (unlikely(!numbytes)) |
@@ -543,7 +544,7 @@ static struct sk_buff *iraw_encode(struct sk_buff *skb, int head, int tail) | |||
543 | cp = skb->data; | 544 | cp = skb->data; |
544 | len = skb->len; | 545 | len = skb->len; |
545 | while (len--) { | 546 | while (len--) { |
546 | c = gigaset_invtab[*cp++]; | 547 | c = bitrev8(*cp++); |
547 | if (c == DLE_FLAG) | 548 | if (c == DLE_FLAG) |
548 | *(skb_put(iraw_skb, 1)) = c; | 549 | *(skb_put(iraw_skb, 1)) = c; |
549 | *(skb_put(iraw_skb, 1)) = c; | 550 | *(skb_put(iraw_skb, 1)) = c; |