From 8157e4bebff9419bc0284e6c1647e3d6a1445cfa Mon Sep 17 00:00:00 2001 From: Mahesh Mahadevan Date: Wed, 23 Feb 2022 16:00:12 -0600 Subject: [PATCH] display: Update ELCDIF driver to use a config Update the MCUX ELCDIF driver to use CONFIG_MCUX_ELCDIF_POOL_BLOCK_NUM for the number for frame buffers to allocate. Signed-off-by: Mahesh Mahadevan --- drivers/display/display_mcux_elcdif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/display/display_mcux_elcdif.c b/drivers/display/display_mcux_elcdif.c index c8f42e677d9..394652f2428 100644 --- a/drivers/display/display_mcux_elcdif.c +++ b/drivers/display/display_mcux_elcdif.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019, NXP + * Copyright 2019-22, NXP * * SPDX-License-Identifier: Apache-2.0 */ @@ -41,7 +41,7 @@ struct mcux_mem_block { }; struct mcux_elcdif_data { - struct mcux_mem_block fb[2]; + struct mcux_mem_block fb[CONFIG_MCUX_ELCDIF_POOL_BLOCK_NUM]; struct k_sem sem; size_t pixel_bytes; size_t fb_bytes;