habanalabs: wrap macro arg with parentheses
authorOhad Sharabi <osharabi@habana.ai>
Mon, 18 Jul 2022 19:02:13 +0000 (22:02 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Sun, 18 Sep 2022 10:29:50 +0000 (13:29 +0300)
commit0c819c9a04413facd3b167ec1e6f5928e909fcb2
tree21b6448cd15e052e373a749f6af423f10824cefb
parentf25a72b8b9f4885ea30263a02d1083e283c9e718
habanalabs: wrap macro arg with parentheses

The macro argument <val> is cast-ed to u32 in some of the places.
Because this arg can be some arithmetic computation (e.g. address +
offset) the cast should be on the whole expression.

Signed-off-by: Ohad Sharabi <osharabi@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/habanalabs.h