From: Tom Rini Date: Sun, 16 Nov 2014 19:46:28 -0500 Subject: [U-Boot] [PATCH v2 04/17] dm: fdt: Correct handling of aliases with embedded digits In-Reply-To: <1415727993-22032-5-git-send-email-sjg@chromium.org> References: <1415727993-22032-1-git-send-email-sjg@chromium.org> <1415727993-22032-5-git-send-email-sjg@chromium.org> Message-ID: <20141117004628.GG21184@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Nov 11, 2014 at 10:46:20AM -0700, Simon Glass wrote: > Since we scan from left to right looking for the first digit, "i2c0" returns > 2 instead of 0 for the alias number. Adjust the code to scan from right to > left instead. > > Signed-off-by: Simon Glass How about i2c10 ? I assume you see where I'm worried about here.. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: