[PATCH v4 2/4] iopoll: Improve handling of timeout_us param in read_poll_timeout macro
Marek Vasut
marek.vasut at mailbox.org
Tue Mar 3 21:30:42 CET 2026
On 3/3/26 7:25 AM, Ronan Dalton wrote:
> The read_poll_timeout macro definition is missing parenthesis around the
> usages of timeout_us. Also, the local timeout variable should be named
> __timeout to distinguish it from any variable named timeout in the
> surrounding scope.
>
> Wrap the timeout_us parameter in brackets and rename timeout to
> __timeout to follow macro definition best-practices.
>
> This change brings the macro definition more in line with what Linux
> does.
>
> Signed-off-by: Ronan Dalton <ronan.dalton at alliedtelesis.co.nz>
Reviewed-by: Marek Vasut <marek.vasut at mailbox.org>
More information about the U-Boot
mailing list