From: Josh Boyer <jwboyer@linux.vnet.ibm.com>
To: WANG Cong <xiyou.wangcong@gmail.com>
Cc: kirk@hpc.ee.ntu.edu.tw, dwmw2@infradead.org, akpm@osdl.org,
linux-mtd@lists.infradead.org,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [Patch] drivers/mtd/maps/tqm8xxl.c: Style cleanups
Date: Thu, 12 Jul 2007 11:11:58 -0500 [thread overview]
Message-ID: <1184256718.32199.111.camel@weaponx.rchland.ibm.com> (raw)
In-Reply-To: <20070712150135.GA4102@localhost.localdomain>
On Thu, 2007-07-12 at 23:01 +0800, WANG Cong wrote:
> Change C++ style comments into K&R's.
> Cut long lines into pieces.
>
> This patch is against 2.6.22.1, and can be also applied to
> the last -mm tree.
>
> Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
>
> ---
>
> tqm8xxl.c | 41 +++++++++++++++++++++++++----------------
> 1 file changed, 25 insertions(+), 16 deletions(-)
>
> Index: linux-2.6.22.1/drivers/mtd/maps/tqm8xxl.c
> ===================================================================
> --- a/drivers/mtd/maps/tqm8xxl.c 2007-04-26 11:08:32.000000000 +0800
> +++ b/drivers/mtd/maps/tqm8xxl.c 2007-07-05 00:16:16.000000000 +0800
> @@ -38,7 +38,7 @@
> #define FLASH_SIZE 0x00800000
> #define FLASH_BANK_MAX 4
>
> -// trivial struct to describe partition information
> +/* trivial struct to describe partition information*/
Needs a space at the end.
> struct mtd_part_def
> {
> int nums;
> @@ -46,7 +46,7 @@
> struct mtd_partition* mtd_part;
> };
>
> -//static struct mtd_info *mymtd;
> +/*static struct mtd_info *mymtd;*/
Just delete this...
> static struct mtd_info* mtd_banks[FLASH_BANK_MAX];
> static struct map_info* map_banks[FLASH_BANK_MAX];
> static struct mtd_part_def part_banks[FLASH_BANK_MAX];
> @@ -106,7 +106,7 @@
> .name = "jffs",
> .offset = 0x00200000,
> .size = 0x00200000,
> - //.size = MTDPART_SIZ_FULL,
> + /*.size = MTDPART_SIZ_FULL,*/
Delete it...
> }
> };
> #endif
> @@ -121,10 +121,11 @@
> flash_addr = bd->bi_flashstart;
> flash_size = bd->bi_flashsize;
>
> - //request maximum flash size address space
> + /*request maximum flash size address space*/
Spaces needed (repeat for the rest of the ones that don't have spaces
either).
josh
next prev parent reply other threads:[~2007-07-12 16:12 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-12 15:01 WANG Cong
2007-07-12 16:11 ` Josh Boyer [this message]
2007-07-13 3:48 ` [Resend][Patch] drivers/mtd/maps/tqm8xxl.c: Do some cleanups WANG Cong
2007-07-13 9:56 ` David Woodhouse
2007-07-13 13:14 ` WANG Cong
2007-07-13 13:38 ` David Woodhouse
2007-07-13 14:24 ` Ralf Baechle
2007-07-13 14:31 ` David Woodhouse
2007-07-13 15:11 ` WANG Cong
2007-07-13 15:05 ` WANG Cong
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=1184256718.32199.111.camel@weaponx.rchland.ibm.com \
--to=jwboyer@linux.vnet.ibm.com \
--cc=akpm@osdl.org \
--cc=dwmw2@infradead.org \
--cc=kirk@hpc.ee.ntu.edu.tw \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=xiyou.wangcong@gmail.com \
/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
all inboxes | Powered by JetHome®