summaryrefslogtreecommitdiff
path: root/arch/arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-07-24 09:03:35 -0600
committerTom Rini <trini@konsulko.com>2021-08-02 13:32:14 -0400
commit5a94546e1cb302842aa0f65be0bb3585fd010ccd (patch)
tree4cb611c1f330fd6d38be15e6cd13051540a2c03d /arch/arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c
parentab833ef60a13b60bfa8e236ca774e91b22255a5a (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>
Diffstat (limited to 'arch/arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c')
0 files changed, 0 insertions, 0 deletions