drm/format-helper: Type fixes in format-helper tests
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 2 Jan 2023 11:29:19 +0000 (12:29 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 3 Jan 2023 13:24:30 +0000 (14:24 +0100)
commit4db88a9026c22059a10e74789f2fcc6a424ab4cc
tree114e641a3f6323500ee69b3b0ff4156d6692c667
parentf21d62c9ce3db2c74875a15bec6afbae93ee43cc
drm/format-helper: Type fixes in format-helper tests

Change the source-buffer type of le32buf_to_cpu() to __le32* to
reflect endianness. Result buffers are converted to local endianness,
so instantiate them from regular u8 or u32 types.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Maíra Canal <mcanal@igalia.com>
Reviewed-by: José Expósito <jose.exposito89@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230102112927.26565-6-tzimmermann@suse.de
drivers/gpu/drm/tests/drm_format_helper_test.c