From mboxrd@z Thu Jan 1 00:00:00 1970 From: u.kleine-koenig@pengutronix.de (Uwe =?iso-8859-1?Q?Kleine-K=F6nig?=) Date: Fri, 15 Apr 2011 10:42:30 +0200 Subject: [PATCH 1/2] ARM: mxs: add GPMI support for imx23/imx28 In-Reply-To: <4DA7FE37.7030808@freescale.com> References: <1302854508-13652-1-git-send-email-b32955@freescale.com> <20110415080621.GL31990@pengutronix.de> <4DA7FE37.7030808@freescale.com> Message-ID: <20110415084230.GN31990@pengutronix.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Fri, Apr 15, 2011 at 04:13:43PM +0800, Huang Shijie wrote: > >On Fri, Apr 15, 2011 at 04:01:47PM +0800, Huang Shijie wrote: > >>+#define GPMI_NFC_DRIVER_NAME "gpmi-nfc" > >>+#define GPMI_NFC_DRIVER_MX23 "imx23-gpmi-nfc" > >>+#define GPMI_NFC_DRIVER_MX28 "imx28-gpmi-nfc" > >>+#define GPMI_NFC_DRIVER_MX50 "imx50-gpmi-nfc" > >Is it sensible to keep these when they are only used in a single .c > >file? > > > I also use these in gpmi driver for distinguish platform id. > Do i have to remove these lines , and use the hardcode? Ah, I missed the usage in the header. *shrug*, I don't care much, but I'd use hardcoding. BTW, as the driver name is gpmi-nfc this should be used for the various names introduced in this patch set. (i.e. mx28_add_gpmi_nfc, MXS_HAS_PLATFORM_GPMI_NFC etc.) Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |