habanalabs: correctly cast variable to __le32
authorOded Gabbay <oded.gabbay@gmail.com>
Tue, 3 Sep 2019 08:33:55 +0000 (11:33 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Thu, 5 Sep 2019 11:55:28 +0000 (14:55 +0300)
commit6dc66f7c26f97396a570f84f6b3c3593a6de7f11
tree70c1a5b4ad204710494fb3080d94a72931f9dcf5
parent307eae93d5ce3316b4c728408283da957350b2a8
habanalabs: correctly cast variable to __le32

When using the macro le32_to_cpu(x), we need to correctly convert x to be
__le32 in case it is defined as u32 variable.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Reviewed-by: Tomer Tayar <ttayar@habana.ai>
drivers/misc/habanalabs/habanalabs.h