From: Josh Triplett <josh@joshtriplett.org>
To: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: linux-mtd@lists.infradead.org,
David Woodhouse <dwmw2@infradead.org>,
Brian Norris <computersforpeace@gmail.com>,
Huang Shijie <shijie8@gmail.com>,
apw@canonical.com, joe@perches.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mtd: denali: fix include guard and license block of denali.h
Date: Fri, 29 Aug 2014 11:30:51 -0700 [thread overview]
Message-ID: <20140829183050.GA1532@thin> (raw)
In-Reply-To: <1409310051-25726-1-git-send-email-yamada.m@jp.panasonic.com>
On Fri, Aug 29, 2014 at 08:00:51PM +0900, Masahiro Yamada wrote:
> It looks like this header file is a concatenation of two headers.
> Anyway, the include guard should be renamed and placed at the correct
> postion and the license block in the middle should be deleted.
>
> Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Looks sensible, since the header above the first diff hunk is the same
modulo filename.
(Side note: could we get checkpatch to complain about comment headers
containing the name of the file they appear in? They're always either
redundant or wrong.)
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
>
> drivers/mtd/nand/denali.h | 27 ++++-----------------------
> 1 file changed, 4 insertions(+), 23 deletions(-)
>
> diff --git a/drivers/mtd/nand/denali.h b/drivers/mtd/nand/denali.h
> index 9668174..145bf88 100644
> --- a/drivers/mtd/nand/denali.h
> +++ b/drivers/mtd/nand/denali.h
> @@ -17,6 +17,9 @@
> *
> */
>
> +#ifndef __DENALI_H__
> +#define __DENALI_H__
> +
> #include <linux/mtd/nand.h>
>
> #define DEVICE_RESET 0x0
> @@ -400,28 +403,6 @@
> #define ONFI_BLOOM_TIME 1
> #define MODE5_WORKAROUND 0
>
> -/* lld_nand.h */
> -/*
> - * NAND Flash Controller Device Driver
> - * Copyright (c) 2009, Intel Corporation and its suppliers.
> - *
> - * This program is free software; you can redistribute it and/or modify it
> - * under the terms and conditions of the GNU General Public License,
> - * version 2, as published by the Free Software Foundation.
> - *
> - * This program is distributed in the hope it will be useful, but WITHOUT
> - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
> - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
> - * more details.
> - *
> - * You should have received a copy of the GNU General Public License along with
> - * this program; if not, write to the Free Software Foundation, Inc.,
> - * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
> - *
> - */
> -
> -#ifndef _LLD_NAND_
> -#define _LLD_NAND_
>
> #define MODE_00 0x00000000
> #define MODE_01 0x04000000
> @@ -499,4 +480,4 @@ struct denali_nand_info {
> extern int denali_init(struct denali_nand_info *denali);
> extern void denali_remove(struct denali_nand_info *denali);
>
> -#endif /*_LLD_NAND_*/
> +#endif /* __DENALI_H__ */
> --
> 1.9.1
>
next prev parent reply other threads:[~2014-08-29 18:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-29 11:00 [PATCH] mtd: denali: fix include guard and license block of denali.h Masahiro Yamada
2014-08-29 18:30 ` Josh Triplett [this message]
2014-08-30 14:09 ` Joe Perches
2014-08-31 18:40 ` Josh Triplett
2014-09-18 6:33 ` Brian Norris
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=20140829183050.GA1532@thin \
--to=josh@joshtriplett.org \
--cc=apw@canonical.com \
--cc=computersforpeace@gmail.com \
--cc=dwmw2@infradead.org \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=shijie8@gmail.com \
--cc=yamada.m@jp.panasonic.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