mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Shawn Guo <shawn.guo@freescale.com>
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Shawn Guo <shawn.guo@linaro.org>, <linux-kernel@vger.kernel.org>,
	<grant.likely@secretlab.ca>, <arnd@arndb.de>, <olof@lixom.net>,
	<kernel@pengutronix.de>, <linux-arm-kernel@lists.infradead.org>,
	<patches@linaro.org>
Subject: Re: [PATCH v4 0/2] Move plat-mxc gpio driver into drivers/gpio
Date: Mon, 6 Jun 2011 20:22:19 +0800	[thread overview]
Message-ID: <20110606122219.GC21204@S2100-06.ap.freescale.net> (raw)
In-Reply-To: <20110606085051.GA23771@pengutronix.de>

On Mon, Jun 06, 2011 at 10:50:51AM +0200, Sascha Hauer wrote:
> On Mon, Jun 06, 2011 at 12:07:53AM +0800, Shawn Guo wrote:
> > The patch set moves plat-mxc gpio driver into drivers/gpio, and
> > migrates mach-imx and mach-mx5 to the new driver.
> > 
> > Changes since v3:
> >  * Reorganize the patch set per Grant's comments
> > 
> > Shawn Guo (2):
> >       gpio/mxc: Move Freescale MXC gpio driver to drivers/gpio
> >       gpio/mxc: Change gpio-mxc into an upstanding gpio driver
> > 
> >  arch/arm/plat-mxc/include/mach/common.h            |   12 +-
> >  arch/arm/plat-mxc/include/mach/devices-common.h    |    2 +
> >  arch/arm/plat-mxc/include/mach/gpio.h              |   27 ---
> >  drivers/gpio/Kconfig                               |    4 +
> >  drivers/gpio/Makefile                              |    1 +
> >  .../arm/plat-mxc/gpio.c => drivers/gpio/gpio-mxc.c |  217 +++++++++++++-------
> 
> While at renaming I'd prefer naming this file gpio-imx.c. We currently
> have inconsistent naming between mxc vs. imx and I'd like to get rid
> of the former.
> 
It's not just a file name.  The "mxc" is embedded in the variable
and function name all over the driver.  I would currently keep it as
it is for the reasons below.

 * The driver was moved out from plat-mxc, so naturally the name
   gpio-mxc is picked.

 * Changing name to gpio-imx would require replace all "mxc" with
   "imx" all over the file, IMO.  This makes the diff of the patch
   look complex.

 * i.MX23 and i.MX28 are also part of imx family, but architecture
   name "imx" does not cover it.  Taking "mxs" as the architecture name 
   for i.MX23 and i.MX28, "mxc" stands well what it stands right now.

I would start renaming the driver with another patch, probably when
I see mach-mx5 start getting merged into mach-imx and plat-mxc renamed
to plat-imx.

-- 
Regards,
Shawn


      reply	other threads:[~2011-06-06 12:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-05 16:07 Shawn Guo
2011-06-05 16:07 ` [PATCH v4 1/2] gpio/mxc: Move Freescale MXC gpio driver to drivers/gpio Shawn Guo
2011-06-06  7:51   ` Grant Likely
2011-06-05 16:07 ` [PATCH v4 2/2] gpio/mxc: Change gpio-mxc into an upstanding gpio driver Shawn Guo
2011-06-06  7:52   ` Grant Likely
2011-06-06  8:12     ` Sascha Hauer
2011-06-06  8:18       ` Grant Likely
2011-06-06  8:47         ` Sascha Hauer
2011-06-06 16:03           ` Grant Likely
2011-06-06  8:50 ` [PATCH v4 0/2] Move plat-mxc gpio driver into drivers/gpio Sascha Hauer
2011-06-06 12:22   ` Shawn Guo [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=20110606122219.GC21204@S2100-06.ap.freescale.net \
    --to=shawn.guo@freescale.com \
    --cc=arnd@arndb.de \
    --cc=grant.likely@secretlab.ca \
    --cc=kernel@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=olof@lixom.net \
    --cc=patches@linaro.org \
    --cc=s.hauer@pengutronix.de \
    --cc=shawn.guo@linaro.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

all inboxes | Powered by JetHome®