Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751927AbbETGuk (ORCPT ); Wed, 20 May 2015 02:50:40 -0400 Received: from metis.ext.pengutronix.de ([92.198.50.35]:57433 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750722AbbETGuj (ORCPT ); Wed, 20 May 2015 02:50:39 -0400 Date: Wed, 20 May 2015 08:50:35 +0200 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Joe Perches Cc: linux-kernel@vger.kernel.org, Shawn Guo , Sascha Hauer , Russell King , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 01/12] ARM: mach-imx: iomux-imx31: Use DECLARE_BITMAP Message-ID: <20150520065035.GO24769@pengutronix.de> References: <04e6c29d921d20f6089dd5d13f2c35bbe362eb0e.1432085659.git.joe@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <04e6c29d921d20f6089dd5d13f2c35bbe362eb0e.1432085659.git.joe@perches.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1286 Lines: 37 Hello, On Tue, May 19, 2015 at 06:37:49PM -0700, Joe Perches wrote: > Use the generic mechanism to declare a bitmap instead of unsigned long. > > Signed-off-by: Joe Perches > --- > arch/arm/mach-imx/iomux-imx31.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/mach-imx/iomux-imx31.c b/arch/arm/mach-imx/iomux-imx31.c > index d6a3075..6dd22ca 100644 > --- a/arch/arm/mach-imx/iomux-imx31.c > +++ b/arch/arm/mach-imx/iomux-imx31.c > @@ -40,7 +40,7 @@ static DEFINE_SPINLOCK(gpio_mux_lock); > > #define IOMUX_REG_MASK (IOMUX_PADNUM_MASK & ~0x3) > > -static unsigned long mxc_pin_alloc_map[NB_PORTS * 32 / BITS_PER_LONG]; > +static DECLARE_BITMAP(mxc_pin_alloc_map, NB_PORTS * 32); > /* > * set the mode for a IOMUX pin. > */ Compile tested and Acked-by: Uwe Kleine-K?nig Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ | -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/