serial: earlycon: Use isdigit() in earlycon_init() Use isdigit() and a while loop to simplify the backward scan. Signed-off-by: Thorsten Blum <blum@kernel.org> Link: https://patch.msgid.link/20261014143034.104950-4-blum@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>