drivers: serial: nrfx_uarte: fix deprecation warning when UART is unused

This hides the deprecation warning when UART_NRFX_UARTE_LEGACY_SHIM is
false because UART is not used.

Signed-off-by: Xudong Zheng <7pkvm5aw@slicealias.com>
This commit is contained in:
Xudong Zheng 2025-01-20 17:00:47 -05:00 committed by Benjamin Cabé
commit fac7c86568

View file

@ -200,6 +200,7 @@ config NRF_PLATFORM_HALTIUM
config DEPRECATED_UART_NRFX_UARTE_LEGACY_SHIM config DEPRECATED_UART_NRFX_UARTE_LEGACY_SHIM
bool bool
default y if !UART_NRFX_UARTE_LEGACY_SHIM default y if !UART_NRFX_UARTE_LEGACY_SHIM
depends on UART_NRFX_UARTE
select DEPRECATED select DEPRECATED
endif # SOC_FAMILY_NORDIC_NRF endif # SOC_FAMILY_NORDIC_NRF