From ad8ace53e5284a9b0c07f20ad10440dbc48dd4f7 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Tue, 7 Jun 2022 18:06:31 +0100 Subject: x1000: remove 'typedef struct' from NAND driver Using 'typedef struct' is not in line with the project coding style and somewhat problematic, so get rid of it here. Change-Id: Icfe79de72ed82cb7526e9f4e8296ec12084c01ac --- firmware/target/mips/ingenic_x1000/spl-nand-x1000.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware/target/mips/ingenic_x1000/spl-nand-x1000.c') diff --git a/firmware/target/mips/ingenic_x1000/spl-nand-x1000.c b/firmware/target/mips/ingenic_x1000/spl-nand-x1000.c index 82a05abf75..24eb42081e 100644 --- a/firmware/target/mips/ingenic_x1000/spl-nand-x1000.c +++ b/firmware/target/mips/ingenic_x1000/spl-nand-x1000.c @@ -23,7 +23,7 @@ #include "gpio-x1000.h" #include "nand-x1000.h" -static nand_drv* ndrv = NULL; +static struct nand_drv* ndrv = NULL; int spl_storage_open(void) { @@ -31,7 +31,7 @@ int spl_storage_open(void) gpioz_configure(GPIO_A, 0x3f << 26, GPIOF_DEVICE(1)); /* Allocate NAND driver manually in DRAM */ - ndrv = spl_alloc(sizeof(nand_drv)); + ndrv = spl_alloc(sizeof(struct nand_drv)); ndrv->page_buf = spl_alloc(NAND_DRV_MAXPAGESIZE); ndrv->scratch_buf = spl_alloc(NAND_DRV_SCRATCHSIZE); ndrv->refcount = 0; -- cgit v1.2.3