From: dwmw2@infradead.org (David Woodhouse)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] MTD: generic FSMC NAND MTD driver
Date: Mon, 25 Oct 2010 00:28:20 +0100 [thread overview]
Message-ID: <1287962900.5674.21.camel@macbook.infradead.org> (raw)
In-Reply-To: <1284330922-3569-1-git-send-email-linus.walleij@stericsson.com>
On Mon, 2010-09-13 at 00:35 +0200, Linus Walleij wrote:
>
> +#define PARTITION(n, off, sz) {.name = n, .offset = off, .size = sz}
> +
> +/*
> + * Default partition layout for small page(= 512 bytes) devices
> + * Size for "Root file system" is updated in driver based on actual device size
> + */
> +static struct mtd_partition partition_info_16KB_blk[] = {
> + PARTITION("X-loader", 0, 4 * 0x4000),
> + PARTITION("U-Boot", 0x10000, 20 * 0x4000),
> + PARTITION("Kernel", 0x60000, 256 * 0x4000),
> + PARTITION("Root File System", 0x460000, 0),
> +};
Er, you use a macro just so that you can use order-dependent non-C99
structure initialisation? You realise that this would do the same thing:
#define PARTITION(a,b,c) {a,c,b}
And no, I don't think *that* would be a good idea either :)
Please fix.
--
David Woodhouse Open Source Technology Centre
David.Woodhouse at intel.com Intel Corporation
prev parent reply other threads:[~2010-10-24 23:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-12 22:35 [PATCH 1/2] MTD: generic FSMC NAND MTD driver Linus Walleij
2010-09-14 8:52 ` Linus Walleij
2010-09-20 8:39 ` Artem Bityutskiy
2010-09-22 8:10 ` Linus Walleij
2010-09-23 13:00 ` Artem Bityutskiy
2010-10-01 4:16 ` viresh kumar
2010-10-01 5:21 ` David Woodhouse
2010-10-01 7:25 ` Linus Walleij
2010-10-01 7:44 ` David Woodhouse
2010-10-01 10:52 ` Vipin Kumar
2010-10-24 23:28 ` David Woodhouse [this message]
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=1287962900.5674.21.camel@macbook.infradead.org \
--to=dwmw2@infradead.org \
--cc=linux-arm-kernel@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;
as well as URLs for NNTP newsgroup(s).