projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] drivers/mtd: Use ARRAY_SIZE macro
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
mtd
/
maps
/
sc520cdp.c
diff --git
a/drivers/mtd/maps/sc520cdp.c
b/drivers/mtd/maps/sc520cdp.c
index ed92afadd8a91b4e13183c314b62ea8b88085406..e8c130e1efd320aeb784d2f7fa50df9a1f7eff8e 100644
(file)
--- a/
drivers/mtd/maps/sc520cdp.c
+++ b/
drivers/mtd/maps/sc520cdp.c
@@
-107,7
+107,7
@@
static struct map_info sc520cdp_map[] = {
},
};
-#define NUM_FLASH_BANKS
(sizeof(sc520cdp_map)/sizeof(struct map_info)
)
+#define NUM_FLASH_BANKS
ARRAY_SIZE(sc520cdp_map
)
static struct mtd_info *mymtd[NUM_FLASH_BANKS];
static struct mtd_info *merged_mtd;