summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/max77686.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-03-26 05:43:36 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2013-04-08 11:47:15 +0200
commitd1ac2c092d9dbd5ef2b903eea77629929c3314f2 (patch)
treeced7780e339fde43b6c4444d2c5f8310a70d3d5a /drivers/mfd/max77686.c
parentmfd: adp5520: Use module_i2c_driver() (diff)
downloadlinux-d1ac2c092d9dbd5ef2b903eea77629929c3314f2.tar.xz
linux-d1ac2c092d9dbd5ef2b903eea77629929c3314f2.zip
mfd: max77686: Use NULL instead of 0
'data' is a pointer and hence use NULL instead of 0. Silences the following warning: drivers/mfd/max77686.c:49:50: warning: Using plain integer as NULL pointer Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Cc: Jonghwa Lee <jonghwa3.lee@samsung.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/max77686.c')
-rw-r--r--drivers/mfd/max77686.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/max77686.c b/drivers/mfd/max77686.c
index 4d73963cd8f0..1cbb17609c8b 100644
--- a/drivers/mfd/max77686.c
+++ b/drivers/mfd/max77686.c
@@ -46,7 +46,7 @@ static struct regmap_config max77686_regmap_config = {
#ifdef CONFIG_OF
static struct of_device_id max77686_pmic_dt_match[] = {
- {.compatible = "maxim,max77686", .data = 0},
+ {.compatible = "maxim,max77686", .data = NULL},
{},
};