From: Mike Frysinger Date: Wed, 23 Nov 2011 17:33:02 -0500 Subject: [U-Boot] [PATCH v3] M28: Added pin name support in GPIO driver In-Reply-To: <7D43A8BE-6285-40C5-8CBE-6866AC04CB8C@Delien.nl> References: <7D43A8BE-6285-40C5-8CBE-6866AC04CB8C@Delien.nl> Message-ID: <201111231733.02833.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wednesday 23 November 2011 16:10:49 Robert Deli?n wrote: > -#ifndef name_to_gpio > -#define name_to_gpio(name) simple_strtoul(name, NULL, 10) > +#ifndef gpio_name_to_pin > +#define gpio_name_to_pin(name) simple_strtoul(name, NULL, 10) > #endif as for the underlying reason, i don't have a problem with renaming things. but the reason i picked "name_to_gpio" instead of "gpio_to_name" was that this is not part of the Linux GPIO API. i didn't want to use a name that'd end up clashing. but i guess the naming convention didn't translate well and it just confuses people. gpio_to_name() should be fine. no need to mention "pin" in there. -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. URL: