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
/
ts5500_flash.c
diff --git
a/drivers/mtd/maps/ts5500_flash.c
b/drivers/mtd/maps/ts5500_flash.c
index 4b372bcb17f1c0b6dbd5ec3312aa59edbb97f7dd..a7422c200567d8afd583b201745b13db2c81a102 100644
(file)
--- a/
drivers/mtd/maps/ts5500_flash.c
+++ b/
drivers/mtd/maps/ts5500_flash.c
@@
-64,7
+64,7
@@
static struct mtd_partition ts5500_partitions[] = {
}
};
-#define NUM_PARTITIONS
(sizeof(ts5500_partitions)/sizeof(struct mtd_partition)
)
+#define NUM_PARTITIONS
ARRAY_SIZE(ts5500_partitions
)
static struct mtd_info *mymtd;