summaryrefslogtreecommitdiff
path: root/firmware/target/mips/ingenic_x1000/spl-nand-x1000.c
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-06-07 18:06:31 +0100
committerAidan MacDonald <amachronic@protonmail.com>2022-07-10 15:22:10 +0100
commitad8ace53e5284a9b0c07f20ad10440dbc48dd4f7 (patch)
tree1a7c000ffffe6660640d96db5d3556b7801dcfb5 /firmware/target/mips/ingenic_x1000/spl-nand-x1000.c
parentcc017f211a338a68a571226e589ce34e47fc8ad3 (diff)
downloadrockbox-ad8ace53e5284a9b0c07f20ad10440dbc48dd4f7.tar.gz
rockbox-ad8ace53e5284a9b0c07f20ad10440dbc48dd4f7.zip
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
Diffstat (limited to 'firmware/target/mips/ingenic_x1000/spl-nand-x1000.c')
-rw-r--r--firmware/target/mips/ingenic_x1000/spl-nand-x1000.c4
1 files changed, 2 insertions, 2 deletions
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 @@
23#include "gpio-x1000.h" 23#include "gpio-x1000.h"
24#include "nand-x1000.h" 24#include "nand-x1000.h"
25 25
26static nand_drv* ndrv = NULL; 26static struct nand_drv* ndrv = NULL;
27 27
28int spl_storage_open(void) 28int spl_storage_open(void)
29{ 29{
@@ -31,7 +31,7 @@ int spl_storage_open(void)
31 gpioz_configure(GPIO_A, 0x3f << 26, GPIOF_DEVICE(1)); 31 gpioz_configure(GPIO_A, 0x3f << 26, GPIOF_DEVICE(1));
32 32
33 /* Allocate NAND driver manually in DRAM */ 33 /* Allocate NAND driver manually in DRAM */
34 ndrv = spl_alloc(sizeof(nand_drv)); 34 ndrv = spl_alloc(sizeof(struct nand_drv));
35 ndrv->page_buf = spl_alloc(NAND_DRV_MAXPAGESIZE); 35 ndrv->page_buf = spl_alloc(NAND_DRV_MAXPAGESIZE);
36 ndrv->scratch_buf = spl_alloc(NAND_DRV_SCRATCHSIZE); 36 ndrv->scratch_buf = spl_alloc(NAND_DRV_SCRATCHSIZE);
37 ndrv->refcount = 0; 37 ndrv->refcount = 0;