drm/tegra: Fix cast to restricted __le32
authorJon Hunter <jonathanh@nvidia.com>
Wed, 16 Feb 2022 09:17:43 +0000 (09:17 +0000)
committerThierry Reding <treding@nvidia.com>
Thu, 17 Feb 2022 06:32:57 +0000 (07:32 +0100)
commit16693c1b2d98cebc8dedf03b49d1053cf1826c86
treea01a5364ca42eb02149112c886b488c3d0b71716
parent184b58fa816fb5ee1854daf0d430766422bf2a77
drm/tegra: Fix cast to restricted __le32

Sparse warns about the following cast in the function
falcon_copy_firmware_image() ...

 drivers/gpu/drm/tegra/falcon.c:66:27: warning: cast to restricted __le32

Fix this by casting the firmware data array to __le32 instead of u32.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/falcon.c