C99 initializer for drivers/mtd/nand/spia.c
Subsystems (2)
PATCH 1/1 C99 initializer for drivers/mtd/nand/spia.c
Hi.
Here is a small patch that converts the file to use C99 initializers. It is against the current 2.5 BK.
Art Haas
===== drivers/mtd/nand/spia.c 1.4 vs edited =====
drivers/mtd/nand/spia.c +9 -6
@@ -66,12 +66,15 @@* Define partitions for flash device */ const static struct mtd_partition partition_info[] = { - { name:"SPIA flash partition 1" , - offset:0 , - size:2 *1024 *1024 }, - { name:"SPIA flash partition 2" , - offset:2 *1024 *1024 , - size:6 *1024 *1024 } + { + .name ="SPIA flash partition 1" , + .size =2 *1024 *1024 + }, + { + .name ="SPIA flash partition 2" , + .offset =2 *1024 *1024 , + .size =6 *1024 *1024 + } };#define NUM_PARTITIONS 2
Signature · 3 lines
They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin, Historical Review of Pennsylvania, 1759