Commit 85bea1bf authored by Sachin Kamat's avatar Sachin Kamat Committed by Mark Brown

regulator: isl6271a: Use NULL instead of 0

init_data is a pointer. Use NULL instead of 0.

Silences the following sparse warning:
drivers/regulator/isl6271a-regulator.c:133:44:
warning: Using plain integer as NULL pointer
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent f722406f
...@@ -130,7 +130,7 @@ static int isl6271a_probe(struct i2c_client *i2c, ...@@ -130,7 +130,7 @@ static int isl6271a_probe(struct i2c_client *i2c,
if (i == 0) if (i == 0)
config.init_data = init_data; config.init_data = init_data;
else else
config.init_data = 0; config.init_data = NULL;
config.driver_data = pmic; config.driver_data = pmic;
pmic->rdev[i] = regulator_register(&isl_rd[i], &config); pmic->rdev[i] = regulator_register(&isl_rd[i], &config);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment