public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mfd: Use NULL to initialise NULL pointers in ab8500-debugfs
@ 2010-12-13 14:08 Mark Brown
  2010-12-14 11:12 ` Mattias Wallin
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Brown @ 2010-12-13 14:08 UTC (permalink / raw)
  To: Samuel Ortiz, Mattias Wallin, Linus Walleij; +Cc: linux-kernel, Mark Brown

Partly for coding style reasons, but mostly because sparse warns on it.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
 drivers/mfd/ab8500-debugfs.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/mfd/ab8500-debugfs.c b/drivers/mfd/ab8500-debugfs.c
index dfdc76e..3c1541a 100644
--- a/drivers/mfd/ab8500-debugfs.c
+++ b/drivers/mfd/ab8500-debugfs.c
@@ -189,7 +189,7 @@ static struct ab8500_i2c_ranges debug_ranges[AB8500_NUM_BANKS] = {
 	},
 	[AB8500_DBI] = {
 		.num_ranges = 0,
-		.range = 0,
+		.range = NULL,
 	},
 	[AB8500_ECI_AV_ACC] = {
 		.num_ranges = 1,
@@ -202,7 +202,7 @@ static struct ab8500_i2c_ranges debug_ranges[AB8500_NUM_BANKS] = {
 	},
 	[0x9] = {
 		.num_ranges = 0,
-		.range = 0,
+		.range = NULL,
 	},
 	[AB8500_GPADC] = {
 		.num_ranges = 1,
@@ -278,7 +278,7 @@ static struct ab8500_i2c_ranges debug_ranges[AB8500_NUM_BANKS] = {
 	},
 	[AB8500_INTERRUPT] = {
 		.num_ranges = 0,
-		.range = 0,
+		.range = NULL,
 	},
 	[AB8500_RTC] = {
 		.num_ranges = 1,
@@ -328,19 +328,19 @@ static struct ab8500_i2c_ranges debug_ranges[AB8500_NUM_BANKS] = {
 	},
 	[0x11] = {
 		.num_ranges = 0,
-		.range = 0,
+		.range = NULL,
 	},
 	[0x12] = {
 		.num_ranges = 0,
-		.range = 0,
+		.range = NULL,
 	},
 	[0x13] = {
 		.num_ranges = 0,
-		.range = 0,
+		.range = NULL,
 	},
 	[0x14] = {
 		.num_ranges = 0,
-		.range = 0,
+		.range = NULL,
 	},
 	[AB8500_OTP_EMUL] = {
 		.num_ranges = 1,
-- 
1.7.1


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

* Re: [PATCH] mfd: Use NULL to initialise NULL pointers in ab8500-debugfs
  2010-12-13 14:08 [PATCH] mfd: Use NULL to initialise NULL pointers in ab8500-debugfs Mark Brown
@ 2010-12-14 11:12 ` Mattias Wallin
  0 siblings, 0 replies; 2+ messages in thread
From: Mattias Wallin @ 2010-12-14 11:12 UTC (permalink / raw)
  To: Mark Brown; +Cc: Samuel Ortiz, Linus WALLEIJ, linux-kernel@vger.kernel.org

On 12/13/2010 03:08 PM, Mark Brown wrote:
> Partly for coding style reasons, but mostly because sparse warns on it.
> 
> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
> ---
Acked-by: Mattias Wallin <mattias.wallin@stericsson.com>

Yours,
Mattias Wallin

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

end of thread, other threads:[~2010-12-14 11:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-13 14:08 [PATCH] mfd: Use NULL to initialise NULL pointers in ab8500-debugfs Mark Brown
2010-12-14 11:12 ` Mattias Wallin

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