drivers: rtc: stm32: fix build warning

Use a mem_addr_t cast to avoid build warning.

Signed-off-by: Johan Lafon <johan.lafon@syslinbit.com>
This commit is contained in:
Johan Lafon 2023-09-13 20:04:46 +02:00 committed by Carles Cufí
commit 24a2b6b004

View file

@ -349,7 +349,7 @@ static int rtc_stm32_get_calibration(const struct device *dev, int32_t *calibrat
{
ARG_UNUSED(dev);
uint32_t calr = sys_read32(&RTC->CALR);
uint32_t calr = sys_read32((mem_addr_t) &RTC->CALR);
bool calp_enabled = READ_BIT(calr, RTC_CALR_CALP);
uint32_t calm = READ_BIT(calr, RTC_CALR_CALM);