From f3faddc4868ddec7806cc9413e33225d87a157a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Niew=C3=B6hner?= Date: Mon, 11 Jan 2021 13:21:19 +0100 Subject: soc/intel: rename uart_max_index MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The name `..._index` is confusing since the maximum index of an array is not `ARRAY_SIZE(array)` but `ARRAY_SIZE(array) - 1`. Rename `uart_max_index` to `uart_ctrlr_config_size` to make the name match the variable´s value. Change-Id: I7409c9dc040c3c6ad718abc96f268c187d50d79c Signed-off-by: Michael Niewöhner Reviewed-on: https://review.coreboot.org/c/coreboot/+/49305 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber Reviewed-by: Furquan Shaikh --- src/soc/intel/jasperlake/uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/soc/intel/jasperlake/uart.c') diff --git a/src/soc/intel/jasperlake/uart.c b/src/soc/intel/jasperlake/uart.c index c0d0e49e5470..cc44a61bb579 100644 --- a/src/soc/intel/jasperlake/uart.c +++ b/src/soc/intel/jasperlake/uart.c @@ -38,4 +38,4 @@ const struct uart_controller_config uart_ctrlr_config[] = { } }; -const int uart_max_index = ARRAY_SIZE(uart_ctrlr_config); +const int uart_ctrlr_config_size = ARRAY_SIZE(uart_ctrlr_config); -- cgit v1.2.3