drivers: serial: ambiq uart update

The number of modules is different for each soc.
There is a macro in the HAL that should have been used.

Signed-off-by: Richard Wheatley <richard.wheatley@ambiq.com>
This commit is contained in:
Richard Wheatley 2024-09-05 16:44:02 -05:00 committed by Anas Nashif
commit 968f674c66

View file

@ -69,7 +69,7 @@ typedef struct {
uint32_t regIFLS;
uint32_t regIER;
} uart_register_state_t;
static uart_register_state_t sRegState[2];
static uart_register_state_t sRegState[AM_REG_UART_NUM_MODULES];
static int uart_ambiq_pm_action(const struct device *dev, enum pm_device_action action)
{