Provide no-op probe function, always returning 1
Change-Id: Ic0567a0da29790dbde24c432f3f1d4d109156165
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/315
diff --git a/flashprog.c b/flashprog.c
index 2520d11..80e53b9 100644
--- a/flashprog.c
+++ b/flashprog.c
@@ -602,6 +602,11 @@
return ret;
}
+int probe_noop(struct flashctx *flash)
+{
+ return 1;
+}
+
static int init_default_layout(struct flashctx *flash)
{
/* Fill default layout covering the whole chip. */
diff --git a/include/chipdrivers.h b/include/chipdrivers.h
index 56644a0..0b1f1f6 100644
--- a/include/chipdrivers.h
+++ b/include/chipdrivers.h
@@ -230,4 +230,7 @@
int prepare_memory_register_access(struct flashctx *, enum preparation_steps);
void finish_memory_access(struct flashctx *);
+/* flashprog.c */
+int probe_noop(struct flashctx *);
+
#endif /* !__CHIPDRIVERS_H__ */