summaryrefslogtreecommitdiff
path: root/include/dm
diff options
context:
space:
mode:
authorRobert Marko <[email protected]>2026-01-12 14:12:40 +0100
committerEugen Hristev <[email protected]>2026-02-04 14:12:56 +0200
commit757a7cbb3e31feaca7c3b52f902b0e1e0f5d2e1a (patch)
tree5d6fbcdf8c7b5ba709ccf79bd73c0dd4b23ac8ca /include/dm
parent1bc75c26524009005eae17293131e0de69039010 (diff)
dm: platform_data: atmel_serial: fix build warning on 64-bit platforms
Pointer size cannot be assumed to be 32-bit, so use uintptr_t instead of uint32_t. Fixes the below build warning on 64-bit builds: drivers/serial/atmel_usart.c: In function ‘atmel_serial_probe’: drivers/serial/atmel_usart.c:275:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 275 | priv->usart = (atmel_usart3_t *)plat->base_addr; Signed-off-by: Robert Marko <[email protected]>
Diffstat (limited to 'include/dm')
-rw-r--r--include/dm/platform_data/atmel_serial.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dm/platform_data/atmel_serial.h b/include/dm/platform_data/atmel_serial.h
index 5d142693640..96da6f50287 100644
--- a/include/dm/platform_data/atmel_serial.h
+++ b/include/dm/platform_data/atmel_serial.h
@@ -8,7 +8,7 @@
/* Information about a serial port */
struct atmel_serial_plat {
- uint32_t base_addr;
+ uintptr_t base_addr;
};
#endif