diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2014-01-02 13:31:37 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-01-03 15:37:01 -0500 |
commit | c9e4a3fb153ddaea715e1ba9233f766a67abe5e4 (patch) | |
tree | 75acb1296fa66b380878bd716abe3bd38e7b75e1 | |
parent | 3ee373055b4a1b943d040c7c6d9410042ad143cd (diff) |
ssb: fix sparse warnings in driver_chipcommon_sflash.c
CHECK drivers/ssb/driver_chipcommon_sflash.c
drivers/ssb/driver_chipcommon_sflash.c:40:11: warning: Using plain integer as NULL pointer
drivers/ssb/driver_chipcommon_sflash.c:58:11: warning: Using plain integer as NULL pointer
drivers/ssb/driver_chipcommon_sflash.c:69:11: warning: Using plain integer as NULL pointer
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/ssb/driver_chipcommon_sflash.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ssb/driver_chipcommon_sflash.c b/drivers/ssb/driver_chipcommon_sflash.c index 50328de712fa..937fc31971a7 100644 --- a/drivers/ssb/driver_chipcommon_sflash.c +++ b/drivers/ssb/driver_chipcommon_sflash.c | |||
@@ -37,7 +37,7 @@ static const struct ssb_sflash_tbl_e ssb_sflash_st_tbl[] = { | |||
37 | { "M25P32", 0x15, 0x10000, 64, }, | 37 | { "M25P32", 0x15, 0x10000, 64, }, |
38 | { "M25P64", 0x16, 0x10000, 128, }, | 38 | { "M25P64", 0x16, 0x10000, 128, }, |
39 | { "M25FL128", 0x17, 0x10000, 256, }, | 39 | { "M25FL128", 0x17, 0x10000, 256, }, |
40 | { 0 }, | 40 | { NULL }, |
41 | }; | 41 | }; |
42 | 42 | ||
43 | static const struct ssb_sflash_tbl_e ssb_sflash_sst_tbl[] = { | 43 | static const struct ssb_sflash_tbl_e ssb_sflash_sst_tbl[] = { |
@@ -55,7 +55,7 @@ static const struct ssb_sflash_tbl_e ssb_sflash_sst_tbl[] = { | |||
55 | { "SST25VF016", 0x41, 0x1000, 512, }, | 55 | { "SST25VF016", 0x41, 0x1000, 512, }, |
56 | { "SST25VF032", 0x4a, 0x1000, 1024, }, | 56 | { "SST25VF032", 0x4a, 0x1000, 1024, }, |
57 | { "SST25VF064", 0x4b, 0x1000, 2048, }, | 57 | { "SST25VF064", 0x4b, 0x1000, 2048, }, |
58 | { 0 }, | 58 | { NULL }, |
59 | }; | 59 | }; |
60 | 60 | ||
61 | static const struct ssb_sflash_tbl_e ssb_sflash_at_tbl[] = { | 61 | static const struct ssb_sflash_tbl_e ssb_sflash_at_tbl[] = { |
@@ -66,7 +66,7 @@ static const struct ssb_sflash_tbl_e ssb_sflash_at_tbl[] = { | |||
66 | { "AT45DB161", 0x2c, 512, 4096, }, | 66 | { "AT45DB161", 0x2c, 512, 4096, }, |
67 | { "AT45DB321", 0x34, 512, 8192, }, | 67 | { "AT45DB321", 0x34, 512, 8192, }, |
68 | { "AT45DB642", 0x3c, 1024, 8192, }, | 68 | { "AT45DB642", 0x3c, 1024, 8192, }, |
69 | { 0 }, | 69 | { NULL }, |
70 | }; | 70 | }; |
71 | 71 | ||
72 | static void ssb_sflash_cmd(struct ssb_chipcommon *cc, u32 opcode) | 72 | static void ssb_sflash_cmd(struct ssb_chipcommon *cc, u32 opcode) |