diff options
author | Evgeniy Polyakov <johnpol@2ka.mipt.ru> | 2005-09-12 17:12:43 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-12 08:48:08 -0700 |
commit | f24ec7f6c6278c0ea4c00efe96d50b1e66796c44 (patch) | |
tree | eab9b703ddfade4510fa2f290c5b6465826aa9d4 /drivers | |
parent | 26cda988ba1e3e843a0680fe98661a22fa430a60 (diff) | |
download | op-kernel-dev-f24ec7f6c6278c0ea4c00efe96d50b1e66796c44.zip op-kernel-dev-f24ec7f6c6278c0ea4c00efe96d50b1e66796c44.tar.gz |
[PATCH] crc16: remove w1 specific comments.
Remove w1 comments from crc16.h and move specific constants into
w1_ds2433.c where they are used.
Replace %d with %zd.
Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/w1/w1_ds2433.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/w1/w1_ds2433.c b/drivers/w1/w1_ds2433.c index b7c24b3..279e0e0 100644 --- a/drivers/w1/w1_ds2433.c +++ b/drivers/w1/w1_ds2433.c @@ -15,6 +15,10 @@ #include <linux/delay.h> #ifdef CONFIG_W1_F23_CRC #include <linux/crc16.h> + +#define CRC16_INIT 0 +#define CRC16_VALID 0xb001 + #endif #include "w1.h" @@ -214,7 +218,7 @@ static ssize_t w1_f23_write_bin(struct kobject *kobj, char *buf, loff_t off, #ifdef CONFIG_W1_F23_CRC /* can only write full blocks in cached mode */ if ((off & W1_PAGE_MASK) || (count & W1_PAGE_MASK)) { - dev_err(&sl->dev, "invalid offset/count off=%d cnt=%d\n", + dev_err(&sl->dev, "invalid offset/count off=%d cnt=%zd\n", (int)off, count); return -EINVAL; } |