From: Mike Frysinger Date: Wed, 23 Nov 2011 17:18:00 -0500 Subject: [U-Boot] [PATCH] M28: Added pin name support in GPIO driver In-Reply-To: <201111222337.49784.marek.vasut@gmail.com> References: <201111221718.12738.vapier@gentoo.org> <201111222337.49784.marek.vasut@gmail.com> Message-ID: <201111231718.01758.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 Tuesday 22 November 2011 17:37:49 Marek Vasut wrote: > > like Marek wants, and then the header simply does: > > extern int name_to_gpio(unsigned gpio); > > #define name_to_gpio(gpio) name_to_gpio(gpio) > > Man, this is really ... urgh. But fine, it's better than it was anyway. this is the SOP in many Linux APIs, and is simple for keeping down duplication while allowing customizations of a tiny subset if you have a better proposal then let's hear it -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: