diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-05-08 12:39:05 +0200 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-05-12 16:36:38 +0200 |
commit | 85bea1bf33f6e66221c5818332382f2ed9f2ad0e (patch) | |
tree | 6de41f7890b5b24d1f6c9198699934ed7bee80ab /drivers/regulator/isl6271a-regulator.c | |
parent | Linux 3.10-rc1 (diff) | |
download | linux-85bea1bf33f6e66221c5818332382f2ed9f2ad0e.tar.xz linux-85bea1bf33f6e66221c5818332382f2ed9f2ad0e.zip |
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>
Diffstat (limited to 'drivers/regulator/isl6271a-regulator.c')
-rw-r--r-- | drivers/regulator/isl6271a-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/isl6271a-regulator.c b/drivers/regulator/isl6271a-regulator.c index d1e5bee2a26b..b99c49b9aff0 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); |