Commit a08b51a9 authored by Oded Gabbay's avatar Oded Gabbay
Browse files

habanalabs: change polling functions to macros



This patch changes two polling functions to macros, in order to make their
API the same as the standard readl_poll_timeout so we would be able to
define the "condition for exit" when calling these macros.

This will simplify the code as it will eliminate the need to check both
for timeout and for the (cond) in the calling function.

Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
parent 1f2c999b
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment