]> git.hungrycats.org Git - linux/commitdiff
[IRDA]: Move crc16 exports out of irsyms.
authorStephen Hemminger <shemminger@osdl.org>
Tue, 9 Mar 2004 05:34:28 +0000 (21:34 -0800)
committerStephen Hemminger <shemminger@osdl.org>
Tue, 9 Mar 2004 05:34:28 +0000 (21:34 -0800)
Also, make type __u16 rather than unsigned short to
match input parameter.

include/net/irda/crc.h
net/irda/crc.c
net/irda/irsyms.c

index a419a992f15f11d5b1b569884e8e2dd2d3b1a718..3cbbe798e996f55d948f5dd1ea7efb9a084d78b2 100644 (file)
@@ -28,6 +28,6 @@ static inline __u16 irda_fcs(__u16 fcs, __u8 c)
 }
 
 /* Recompute the FCS with len bytes appended. */
-unsigned short irda_calc_crc16( __u16 fcs, __u8 const *buf, size_t len);
+__u16 irda_calc_crc16( __u16 fcs, __u8 const *buf, size_t len);
 
 #endif
index b9a46c9e955badab5cdb17ba8c55aea979aeccc3..b79b59a054b10a208f3680534a7fd6ad81375db9 100644 (file)
@@ -14,6 +14,7 @@
  ********************************************************************/
 
 #include <net/irda/crc.h>
+#include <linux/module.h>
 
 /*
  * This mysterious table is just the CRC of each possible byte.  It can be
@@ -56,10 +57,12 @@ __u16 const irda_crc16_table[256] =
        0xf78f, 0xe606, 0xd49d, 0xc514, 0xb1ab, 0xa022, 0x92b9, 0x8330,
        0x7bc7, 0x6a4e, 0x58d5, 0x495c, 0x3de3, 0x2c6a, 0x1ef1, 0x0f78
 };
+EXPORT_SYMBOL(irda_crc16_table);
 
-unsigned short irda_calc_crc16( __u16 fcs, __u8 const *buf, size_t len) 
+__u16 irda_calc_crc16( __u16 fcs, __u8 const *buf, size_t len) 
 {
        while (len--)
                 fcs = irda_fcs(fcs, *buf++);
        return fcs;
 }
+EXPORT_SYMBOL(irda_calc_crc16);
index ce450d41d98534f23bbacc5ff18ee08dadbe3dc6..985bc86565aa5a90ec4e198dc526d2581f5bb767 100644 (file)
@@ -97,8 +97,6 @@ EXPORT_SYMBOL(irda_task_execute);
 EXPORT_SYMBOL(irda_task_next_state);
 EXPORT_SYMBOL(irda_task_delete);
 
-EXPORT_SYMBOL(irda_calc_crc16);
-EXPORT_SYMBOL(irda_crc16_table);
 EXPORT_SYMBOL(irda_start_timer);
 
 #ifdef CONFIG_IRDA_DEBUG