summaryrefslogtreecommitdiffstats
path: root/drivers/w1
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2013-03-05 19:09:02 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2013-03-06 09:04:26 +0100
commitb8f69b8e111b72b47a96165677a07c104a43250d (patch)
tree6e34239b99252daa8c71c56c24f5f6f0ff72157f /drivers/w1
parent1ca6ccbfda939c5e6675d384efd2e4116daeb1a0 (diff)
downloadbarebox-b8f69b8e111b72b47a96165677a07c104a43250d.tar.gz
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>
Diffstat (limited to 'drivers/w1')
-rw-r--r--drivers/w1/w1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/w1/w1.c b/drivers/w1/w1.c
index eb6bec8..bbef470 100644
--- a/drivers/w1/w1.c
+++ b/drivers/w1/w1.c
@@ -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",