Skip to content
Snippets Groups Projects
Commit a88340df authored by Simon Glass's avatar Simon Glass
Browse files

dm: fdt: Correct handling of aliases with embedded digits


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: default avatarSimon Glass <sjg@chromium.org>
Acked-by: default avatarHeiko Schocher <hs@denx.de>
Reviewed-by: default avatarTom Rini <trini@ti.com>
parent 479728cb
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment