summaryrefslogtreecommitdiff
path: root/drivers/mfd
diff options
context:
space:
mode:
authorMallikarjun Kasoju <mkasoju@nvidia.com>2014-03-25 13:18:19 +0530
committerLaxman Dewangan <ldewangan@nvidia.com>2014-03-25 05:09:08 -0700
commitc606174847c5ea9948f8bb4d8b0e1e88e5e0b6e0 (patch)
tree61c494e265d2174774fcbd50f0ef89c8f97c1bc6 /drivers/mfd
parent8ed9e38744b97ea3d5d30774698c61f334f6fac4 (diff)
mfd: palmas: Fix type casting warning
Bug 1466403 Change-Id: I0c29790e00e004a060ac4bae8234faa64db88f52 Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com> Reviewed-on: http://git-master/r/382008 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/palmas.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/palmas.c b/drivers/mfd/palmas.c
index 244b21cbbb80..480cefb149f1 100644
--- a/drivers/mfd/palmas.c
+++ b/drivers/mfd/palmas.c
@@ -2,7 +2,7 @@
* TI Palmas MFD Driver
*
* Copyright 2011-2012 Texas Instruments Inc.
- * Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved.
+ * Copyright (c) 2013-2014, NVIDIA CORPORATION. All rights reserved.
*
* Author: Graeme Gregory <gg@slimlogic.co.uk>
*
@@ -1058,7 +1058,7 @@ static int palmas_i2c_probe(struct i2c_client *i2c,
&i2c->dev);
if (!match)
return -ENODATA;
- palmas->id = (unsigned int)match->data;
+ palmas->id = (u32)((uintptr_t)match->data);
} else {
palmas->id = id->driver_data;
}