mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[PATCH] w1_smem: w1 ID is only 8 bytes long.
w1 ID is only 8 bytes long. Signed-off-by: Evgeniy Polyakov <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
8523ff4567
commit
0598571575
1 changed files with 2 additions and 2 deletions
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue