summaryrefslogtreecommitdiff
path: root/firmware/target/mips/ingenic_x1000/installer-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/installer-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/installer-x1000.c')
-rw-r--r--firmware/target/mips/ingenic_x1000/installer-x1000.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/mips/ingenic_x1000/installer-x1000.c b/firmware/target/mips/ingenic_x1000/installer-x1000.c
index 66aa42d4a1..48850f8a62 100644
--- a/firmware/target/mips/ingenic_x1000/installer-x1000.c
+++ b/firmware/target/mips/ingenic_x1000/installer-x1000.c
@@ -65,7 +65,7 @@ static const int num_updates = sizeof(updates) / sizeof(struct update_part);
65/* calculate the offset and length of the update image; this is constant 65/* calculate the offset and length of the update image; this is constant
66 * for a given target, based on the update parts and the NAND chip geometry. 66 * for a given target, based on the update parts and the NAND chip geometry.
67 */ 67 */
68static void get_image_loc(nand_drv* ndrv, size_t* offptr, size_t* lenptr) 68static void get_image_loc(struct nand_drv* ndrv, size_t* offptr, size_t* lenptr)
69{ 69{
70 size_t blk_size = ndrv->chip->page_size << ndrv->chip->log2_ppb; 70 size_t blk_size = ndrv->chip->page_size << ndrv->chip->log2_ppb;
71 size_t img_off = 0; 71 size_t img_off = 0;
@@ -119,7 +119,7 @@ struct updater {
119 size_t img_len; /* image length in flash = size of the buffer */ 119 size_t img_len; /* image length in flash = size of the buffer */
120 120
121 mtar_t* tar; 121 mtar_t* tar;
122 nand_drv* ndrv; 122 struct nand_drv* ndrv;
123}; 123};
124 124
125static int updater_init(struct updater* u) 125static int updater_init(struct updater* u)