mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] regulator: isl6271a: Use NULL instead of 0
@ 2013-05-08 10:39 Sachin Kamat
  2013-05-08 10:39 ` [PATCH 2/2] regulator: palmas: Fix incorrect condition Sachin Kamat
  2013-05-08 12:41 ` [PATCH 1/2] regulator: isl6271a: Use NULL instead of 0 Mark Brown
  0 siblings, 2 replies; 4+ messages in thread
From: Sachin Kamat @ 2013-05-08 10:39 UTC (permalink / raw)
  To: linux-kernel; +Cc: broonie, lgirdwood, sachin.kamat, Marek Vasut

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>
Cc: Marek Vasut <marek.vasut@gmail.com>
---
 drivers/regulator/isl6271a-regulator.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-05-10 11:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-08 10:39 [PATCH 1/2] regulator: isl6271a: Use NULL instead of 0 Sachin Kamat
2013-05-08 10:39 ` [PATCH 2/2] regulator: palmas: Fix incorrect condition Sachin Kamat
2013-05-10 11:11   ` Mark Brown
2013-05-08 12:41 ` [PATCH 1/2] regulator: isl6271a: Use NULL instead of 0 Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®