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 <mahesh.mahadevan@nxp.com>
This commit is contained in:
Mahesh Mahadevan 2022-02-23 16:00:12 -06:00 committed by David Leach
commit 8157e4bebf

View file

@ -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;