common: splash_source: Fix type casting errors
authorNikhil M Jain <n-jain1@ti.com>
Wed, 21 Jun 2023 10:59:53 +0000 (16:29 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 21 Jul 2023 17:13:43 +0000 (13:13 -0400)
commit2b36c623ef0751e01b40b2443c14a4455feee8b4
treeb38235506a670b4781552826b939c485072e3000
parenteeea6e298dc83b4a93a18c846e8e567d9beb0c1f
common: splash_source: Fix type casting errors

During compilation splash_source puts out below warning for type
conversion in splash_load_fit for bmp_load_addr and fit_header.
Change their type to uintptr_t to fix the warnings.

common/splash_source.c: In function ‘splash_load_fit’:
common/splash_source.c:366:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  366 |         img_header = (struct legacy_img_hdr *)bmp_load_addr;
      |                      ^
common/splash_source.c:376:49: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  376 |         res = splash_storage_read_raw(location, (u32)fit_header, fit_size);
      |                                                 ^
common/splash_source.c:401:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  401 |                 memmove((void *)bmp_load_addr, internal_splash_data, internal_splash_size);

The above warnings are generated if CONFIG_FIT is enabled.

Signed-off-by: Nikhil M Jain <n-jain1@ti.com>
common/splash_source.c