w1: Fix compiler warning
This patch fixes following warning: drivers/w1/w1.c: In function 'w1_found': drivers/w1/w1.c:471: warning: integer constant is too large for 'long' type Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
1ca6ccbfda
commit
b8f69b8e11
|
@ -468,7 +468,7 @@ void w1_found(struct w1_bus *bus, u64 rn)
|
|||
|
||||
dev->reg_num = rn;
|
||||
dev->fid = tmp >> 56;
|
||||
dev->id = (tmp >> 8) & 0xffffffffffff;
|
||||
dev->id = (tmp >> 8) & 0xffffffffffffULL;
|
||||
dev->crc = tmp & 0xff;
|
||||
|
||||
dev_dbg(&bus->dev, "%s: familly = 0x%x, id = 0x%llx, crc = 0x%x\n",
|
||||
|
|
Loading…
Reference in New Issue