Commit 87fff232 authored by Mark Brown's avatar Mark Brown Committed by Samuel Ortiz

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: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: default avatarMattias Wallin <mattias.wallin@stericsson.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent fe421425
...@@ -189,7 +189,7 @@ static struct ab8500_i2c_ranges debug_ranges[AB8500_NUM_BANKS] = { ...@@ -189,7 +189,7 @@ static struct ab8500_i2c_ranges debug_ranges[AB8500_NUM_BANKS] = {
}, },
[AB8500_DBI] = { [AB8500_DBI] = {
.num_ranges = 0, .num_ranges = 0,
.range = 0, .range = NULL,
}, },
[AB8500_ECI_AV_ACC] = { [AB8500_ECI_AV_ACC] = {
.num_ranges = 1, .num_ranges = 1,
...@@ -202,7 +202,7 @@ static struct ab8500_i2c_ranges debug_ranges[AB8500_NUM_BANKS] = { ...@@ -202,7 +202,7 @@ static struct ab8500_i2c_ranges debug_ranges[AB8500_NUM_BANKS] = {
}, },
[0x9] = { [0x9] = {
.num_ranges = 0, .num_ranges = 0,
.range = 0, .range = NULL,
}, },
[AB8500_GPADC] = { [AB8500_GPADC] = {
.num_ranges = 1, .num_ranges = 1,
...@@ -278,7 +278,7 @@ static struct ab8500_i2c_ranges debug_ranges[AB8500_NUM_BANKS] = { ...@@ -278,7 +278,7 @@ static struct ab8500_i2c_ranges debug_ranges[AB8500_NUM_BANKS] = {
}, },
[AB8500_INTERRUPT] = { [AB8500_INTERRUPT] = {
.num_ranges = 0, .num_ranges = 0,
.range = 0, .range = NULL,
}, },
[AB8500_RTC] = { [AB8500_RTC] = {
.num_ranges = 1, .num_ranges = 1,
...@@ -328,19 +328,19 @@ static struct ab8500_i2c_ranges debug_ranges[AB8500_NUM_BANKS] = { ...@@ -328,19 +328,19 @@ static struct ab8500_i2c_ranges debug_ranges[AB8500_NUM_BANKS] = {
}, },
[0x11] = { [0x11] = {
.num_ranges = 0, .num_ranges = 0,
.range = 0, .range = NULL,
}, },
[0x12] = { [0x12] = {
.num_ranges = 0, .num_ranges = 0,
.range = 0, .range = NULL,
}, },
[0x13] = { [0x13] = {
.num_ranges = 0, .num_ranges = 0,
.range = 0, .range = NULL,
}, },
[0x14] = { [0x14] = {
.num_ranges = 0, .num_ranges = 0,
.range = 0, .range = NULL,
}, },
[AB8500_OTP_EMUL] = { [AB8500_OTP_EMUL] = {
.num_ranges = 1, .num_ranges = 1,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment