summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2010-12-13 14:06:47 +0000
committerSamuel Ortiz <sameo@linux.intel.com>2011-01-14 12:37:50 +0100
commit87fff232cb76828b44312843d96854704f71ed19 (patch)
tree52afd39f90d2e604e5d9bca8922fb2b4725df3b8
parentfe421425d78176f4a3509ce11b8d683cf1604e3a (diff)
downloadlinux-next-87fff232cb76828b44312843d96854704f71ed19.tar.gz
mfd: Use NULL to initialise NULL pointers in ab8500-debugfs
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>
-rw-r--r--drivers/mfd/ab8500-debugfs.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/mfd/ab8500-debugfs.c b/drivers/mfd/ab8500-debugfs.c
index dfdc76e0b96e..3c1541ae7223 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,