From 8961d9f2406111f7939d7cb09dfd8913769c859b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Stasiak?= Date: Mon, 11 Aug 2025 11:05:24 +0200 Subject: [PATCH] modules: hal_nordic: remove deprecated error code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NRFX_ERROR_ALREADY_INITIALIZED has beed deprecated and repleaced by NRFX_ERROR_ALREADY. Signed-off-by: MichaƂ Stasiak --- drivers/usb/device/usb_dc_nrfx.c | 2 +- modules/hal_nordic/nrfx/nrfx_glue.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/device/usb_dc_nrfx.c b/drivers/usb/device/usb_dc_nrfx.c index d7e56167120be..c8bbfd40ada87 100644 --- a/drivers/usb/device/usb_dc_nrfx.c +++ b/drivers/usb/device/usb_dc_nrfx.c @@ -1914,7 +1914,7 @@ static int usb_init(void) return -EIO; } - /* Ignore the return value, as NRFX_ERROR_ALREADY_INITIALIZED is not + /* Ignore the return value, as NRFX_ERROR_ALREADY is not * a problem here. */ (void)nrfx_power_init(&power_config); diff --git a/modules/hal_nordic/nrfx/nrfx_glue.c b/modules/hal_nordic/nrfx/nrfx_glue.c index 54696efd122e9..4e7fc94e11de0 100644 --- a/modules/hal_nordic/nrfx/nrfx_glue.c +++ b/modules/hal_nordic/nrfx/nrfx_glue.c @@ -38,7 +38,7 @@ char const *nrfx_error_string_get(nrfx_err_t code) NRFX_ERROR_STRING_CASE(NRFX_ERROR_NULL); NRFX_ERROR_STRING_CASE(NRFX_ERROR_INVALID_ADDR); NRFX_ERROR_STRING_CASE(NRFX_ERROR_BUSY); - NRFX_ERROR_STRING_CASE(NRFX_ERROR_ALREADY_INITIALIZED); + NRFX_ERROR_STRING_CASE(NRFX_ERROR_ALREADY); NRFX_ERROR_STRING_CASE(NRFX_ERROR_DRV_TWI_ERR_OVERRUN); NRFX_ERROR_STRING_CASE(NRFX_ERROR_DRV_TWI_ERR_ANACK); NRFX_ERROR_STRING_CASE(NRFX_ERROR_DRV_TWI_ERR_DNACK);