summaryrefslogtreecommitdiff
path: root/firmware/target/mips/ingenic_x1000/installer-x1000.c
diff options
context:
space:
mode:
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)