diff options
author | johnpol@2ka.mipt.ru | 2005-04-19 06:16:57 +0200 |
---|---|---|
committer | Greg KH | 2005-04-19 06:16:57 +0200 |
commit | 05985715756b8667cb35a3e05e1668bb8afe3298 (patch) | |
tree | d990e8d99830ebb1d60f36a23512b3cd838a8585 /drivers/w1 | |
parent | [PATCH] w1: real fix for big endian machines. (diff) | |
download | kernel-qcow2-linux-05985715756b8667cb35a3e05e1668bb8afe3298.tar.gz kernel-qcow2-linux-05985715756b8667cb35a3e05e1668bb8afe3298.tar.xz kernel-qcow2-linux-05985715756b8667cb35a3e05e1668bb8afe3298.zip |
[PATCH] w1_smem: w1 ID is only 8 bytes long.
w1 ID is only 8 bytes long.
Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/w1')
-rw-r--r-- | drivers/w1/w1_smem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/w1/w1_smem.c b/drivers/w1/w1_smem.c index ab82eb7ed74f..a54e425217a0 100644 --- a/drivers/w1/w1_smem.c +++ b/drivers/w1/w1_smem.c @@ -60,7 +60,7 @@ static ssize_t w1_smem_read_val(struct device *dev, char *buf) int i; ssize_t count = 0; - for (i = 0; i < 9; ++i) + for (i = 0; i < 8; ++i) count += sprintf(buf + count, "%02x ", ((u8 *)&sl->reg_num)[i]); count += sprintf(buf + count, "\n"); @@ -87,7 +87,7 @@ static ssize_t w1_smem_read_bin(struct kobject *kobj, char *buf, loff_t off, siz count = 0; goto out; } - for (i = 0; i < 9; ++i) + for (i = 0; i < 8; ++i) count += sprintf(buf + count, "%02x ", ((u8 *)&sl->reg_num)[i]); count += sprintf(buf + count, "\n"); |