aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-05-08 16:09:05 +0530
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-05-12 18:36:38 +0400
commit85bea1bf33f6e66221c5818332382f2ed9f2ad0e (patch)
tree6de41f7890b5b24d1f6c9198699934ed7bee80ab
parentf722406faae2d073cc1d01063d1123c35425939e (diff)
downloadkernel_goldelico_gta04-85bea1bf33f6e66221c5818332382f2ed9f2ad0e.zip
kernel_goldelico_gta04-85bea1bf33f6e66221c5818332382f2ed9f2ad0e.tar.gz
kernel_goldelico_gta04-85bea1bf33f6e66221c5818332382f2ed9f2ad0e.tar.bz2
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: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r--drivers/regulator/isl6271a-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/isl6271a-regulator.c b/drivers/regulator/isl6271a-regulator.c
index d1e5bee..b99c49b 100644
--- a/drivers/regulator/isl6271a-regulator.c
+++ b/drivers/regulator/isl6271a-regulator.c
@@ -130,7 +130,7 @@ static int isl6271a_probe(struct i2c_client *i2c,
if (i == 0)
config.init_data = init_data;
else
- config.init_data = 0;
+ config.init_data = NULL;
config.driver_data = pmic;
pmic->rdev[i] = regulator_register(&isl_rd[i], &config);