commit | fe2622cfaa4a0b3708c14614dae0381d15a78219 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sat Jul 24 09:03:35 2021 -0600 |
committer | Tom Rini <trini@konsulko.com> | Mon Aug 02 13:32:14 2021 -0400 |
tree | 4cb611c1f330fd6d38be15e6cd13051540a2c03d | |
parent | b9efdf5bbc5a29219573e430bb7cdbad5e1bb120 [diff] |
lib: Move common digit-parsing code into a function The code to convert a character into a digit is repeated twice in this file. Factor it out into a separate function. This also makes the code a little easier to read. Signed-off-by: Simon Glass <sjg@chromium.org>