From: ahaas@airmail.net (Art Haas)
To: linux-mtd@lists.infradead.org
Subject: [PATCH] C99 initializer for drivers/mtd/nand/spia.c
Date: Wed, 26 Feb 2003 15:04:03 -0600 [thread overview]
Message-ID: <20030226210403.GG8966@debian> (raw)
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 =====
--- 1.4/drivers/mtd/nand/spia.c Sat Mar 2 05:53:22 2002
+++ edited/drivers/mtd/nand/spia.c Wed Feb 26 13:44:53 2003
@@ -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
--
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
reply other threads:[~2003-02-26 21:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030226210403.GG8966@debian \
--to=ahaas@airmail.net \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox