From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH v2 07/18] drivers: reset: Add STM32 reset driver Date: Tue, 10 Mar 2015 16:02:14 +0100 Message-ID: <2383270.cAJPOxrkvo@wuerfel> References: <1424455277-29983-1-git-send-email-mcoquelin.stm32@gmail.com> <1424455277-29983-8-git-send-email-mcoquelin.stm32@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: In-Reply-To: <1424455277-29983-8-git-send-email-mcoquelin.stm32@gmail.com> Sender: linux-gpio-owner@vger.kernel.org To: Maxime Coquelin Cc: u.kleine-koenig@pengutronix.de, afaerber@suse.de, geert@linux-m68k.org, Rob Herring , Philipp Zabel , Jonathan Corbet , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Russell King , Daniel Lezcano , Thomas Gleixner , Linus Walleij , Greg Kroah-Hartman , Jiri Slaby , Andrew Morton , "David S. Miller" , Mauro Carvalho Chehab , Joe Perches , Antti Palosaari , Tejun Heo , Will Deacon , Nikolay Borisov Rus List-Id: linux-api@vger.kernel.org On Friday 20 February 2015 19:01:06 Maxime Coquelin wrote: > +/* AHB1 */ > +#define GPIOA_RESET 0 > +#define GPIOB_RESET 1 > +#define GPIOC_RESET 2 > +#define GPIOD_RESET 3 > +#define GPIOE_RESET 4 > +#define GPIOF_RESET 5 > +#define GPIOG_RESET 6 > +#define GPIOH_RESET 7 > +#define GPIOI_RESET 8 > +#define GPIOJ_RESET 9 > +#define GPIOK_RESET 10 > As these are just the hardware numbers, it's better to not make them part of the binding at all. Instead, just document in the binding that one is supposed to pass the hardware number as the argument. Arnd