Skip to content

Commit

Permalink
mfd: Use NULL to initialise NULL pointers in ab8500-debugfs
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Mark Brown authored and Samuel Ortiz committed Jan 14, 2011
1 parent fe42142 commit 87fff23
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions drivers/mfd/ab8500-debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 87fff23

Please sign in to comment.