X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=drivers%2Fw1%2Fw1_ds2433.c;h=279e0e0363d6afb7e7326da42381d6c36c5e37f4;hb=ab1f9dac6eea25ee59e4c8e1cf0b7476afbbfe07;hp=b7c24b34d270db1129009b374d52710a012c0287;hpb=486a153f0e294f7cc735838edcb6b32e623cbe52;p=powerpc.git diff --git a/drivers/w1/w1_ds2433.c b/drivers/w1/w1_ds2433.c index b7c24b34d2..279e0e0363 100644 --- a/drivers/w1/w1_ds2433.c +++ b/drivers/w1/w1_ds2433.c @@ -15,6 +15,10 @@ #include #ifdef CONFIG_W1_F23_CRC #include + +#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; }