From ee288819a0b34dbdb8ad7fc7fb2d69b33c2a4f5d Mon Sep 17 00:00:00 2001 From: Furkan Akkiz Date: Thu, 13 Feb 2025 13:11:52 +0300 Subject: [PATCH] drivers: hwinfo: Update driver for MAX32650 There are function mismatches for MAX32650. Because of that, created a wrap version of the function to handle these differences. Signed-off-by: Furkan Akkiz --- drivers/hwinfo/hwinfo_max32.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/hwinfo/hwinfo_max32.c b/drivers/hwinfo/hwinfo_max32.c index 61c841380d8..e0ec75dd722 100644 --- a/drivers/hwinfo/hwinfo_max32.c +++ b/drivers/hwinfo/hwinfo_max32.c @@ -6,17 +6,16 @@ #include #include -#include +#include #include #include ssize_t z_impl_hwinfo_get_device_id(uint8_t *buffer, size_t length) { uint8_t usn[MXC_SYS_USN_LEN]; - uint8_t checksum[MXC_SYS_USN_CHECKSUM_LEN]; int error; - error = MXC_SYS_GetUSN(usn, checksum); + error = Wrap_MXC_SYS_GetUSN(usn); if (error != E_NO_ERROR) { /* Error reading USN */ return error;