Draw struct flashchip into struct flashprog_flashctx

We used to have a reference to a dynamically allocated  struct flashchip
inside the flash context. But now that we only ever allocate both in one
go, we can let go of the reference and make it a single structure.

Change-Id: I857acb1def6d133a5cbc28fc7a99b7b1a22b55e0
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/494
diff --git a/helpers.c b/helpers.c
index 7e12c3e..48c7f0e 100644
--- a/helpers.c
+++ b/helpers.c
@@ -65,7 +65,7 @@
 int flashprog_limit_chip(struct flashctx *flash)
 {
 	const chipsize_t limit = flash->mst.common->max_rom_decode;
-	struct flashchip *const chip = flash->chip;
+	struct flashchip *const chip = &flash->chip;
 	const chipsize_t chip_size = chip->total_size * 1024;
 	unsigned int usable_erasers = 0;
 	unsigned int i;