Commit 02a66006 authored by Andrey Panin's avatar Andrey Panin Committed by Linus Torvalds

[PATCH] CRC16 renaming in IRDA drivers

Signed-off-by: default avatarAndrey Panin <pazke@donpac.ru>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent a1d2cf2e
...@@ -15,15 +15,15 @@ ...@@ -15,15 +15,15 @@
#define IRDA_CRC_H #define IRDA_CRC_H
#include <linux/types.h> #include <linux/types.h>
#include <linux/crc16.h> #include <linux/crc-ccitt.h>
#define INIT_FCS 0xffff /* Initial FCS value */ #define INIT_FCS 0xffff /* Initial FCS value */
#define GOOD_FCS 0xf0b8 /* Good final FCS value */ #define GOOD_FCS 0xf0b8 /* Good final FCS value */
/* Recompute the FCS with one more character appended. */ /* Recompute the FCS with one more character appended. */
#define irda_fcs(fcs, c) crc16_byte(fcs, c) #define irda_fcs(fcs, c) crc_ccitt_byte(fcs, c)
/* Recompute the FCS with len bytes appended. */ /* Recompute the FCS with len bytes appended. */
#define irda_calc_crc16(fcs, buf, len) crc16(fcs, buf, len) #define irda_calc_crc16(fcs, buf, len) crc_ccitt(fcs, buf, len)
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment