Skip to content

Commit

Permalink
mfd: max77686: Use NULL instead of 0
Browse files Browse the repository at this point in the history
'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>
  • Loading branch information
Sachin Kamat authored and Samuel Ortiz committed Apr 8, 2013
1 parent 099bb95 commit d1ac2c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/max77686.c
Original file line number Diff line number Diff line change
Expand Up @@ -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},
{},
};

Expand Down

0 comments on commit d1ac2c0

Please sign in to comment.