Run .prepare_access only once per flash context

There's only a single path now to create a flash context,  after
probing, and only when we want to access the flash chip next. So
there's no need to defer this preparation step anymore.

All preparation will be done in a single step. Hence we drop the
PREPARE_POST_PROBE and PREPARE_FULL steps and the enum.

Change-Id: I7cd4058dd0b52ad0e4be45e494c4533f689893d9
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/492
diff --git a/include/flash.h b/include/flash.h
index 32824a7..5566067 100644
--- a/include/flash.h
+++ b/include/flash.h
@@ -246,11 +246,6 @@
 
 struct wp_bits;
 
-enum preparation_steps {
-	PREPARE_POST_PROBE,
-	PREPARE_FULL,
-};
-
 struct flashchip {
 	const char *vendor;
 	const char *name;
@@ -412,7 +407,7 @@
 	/* and determines what protection range they select. */
 	void (*decode_range)(size_t *start, size_t *len, const struct wp_bits *, size_t chip_len);
 
-	int (*prepare_access)(struct flashctx *, enum preparation_steps);
+	int (*prepare_access)(struct flashctx *);
 	void (*finish_access)(struct flashctx *);
 };