From: Mike Frysinger Date: Tue, 22 Nov 2011 16:11:48 -0500 Subject: [U-Boot] [PATCH] M28: Added pin name support in GPIO driver In-Reply-To: References: Message-ID: <201111221611.48987.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 10:40:24 Robert Deli?n wrote: > +static inline int name_to_gpio(const char *name) > +{ > + int pin_nr; single space after that "int" > + if (name[0] >= '0' && name[0] <= '9') { > + pin_nr = simple_strtoul(name, (char **)&name, 10); NAK: that 2nd arg is wrong. if you want to check the endp value, then declare a local variable and pass that in. same goes to all other calls to simple_strtoul() in this func -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: