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/layout.c b/layout.c
index 56c4d1b..382b7e1 100644
--- a/layout.c
+++ b/layout.c
@@ -216,7 +216,7 @@
 {
 	const struct flashprog_layout *const layout = get_layout(flash);
 	const chipsize_t total_size = flashprog_flash_getsize(flash);
-	const size_t gran = gran_to_bytes(flash->chip->gran);
+	const size_t gran = gran_to_bytes(flash->chip.gran);
 	int ret = 0;
 
 	const struct romentry *entry = NULL;