zephyr/uart_core: Update for removal of CONFIG_UART_CONSOLE_ON_DEV_NAME
Zephyr recently removed that config symbol, suggesting to rely on
devicetree instead.
@@ -55,7 +55,7 @@ void mp_hal_stdout_tx_strn(const char *str, mp_uint_t len) {
#else
static const struct device *uart_console_dev;
if (uart_console_dev == NULL) {
- uart_console_dev = device_get_binding(CONFIG_UART_CONSOLE_ON_DEV_NAME);
+ uart_console_dev = device_get_binding(DT_LABEL(DT_CHOSEN(zephyr_console)));
}
while (len--) {
