[PATCH v2 1/2] console: add console_flush_stdin()
Quentin Schulz
quentin.schulz at cherry.de
Wed Apr 1 15:45:21 CEST 2026
Hi Gregor,
On 4/1/26 2:40 PM, Gregor Herburger wrote:
> Add a common helper console_flush_stdin() to drain all pending
> characters from stdin. This consolidates the open-coded
> while (tstc()) getchar() pattern that appeared in multiple places
> across the tree.
>
Reviewed-by: Quentin Schulz <quentin.schulz at cherry.de>
Thanks!
Quentin
More information about the U-Boot
mailing list