probing: Pass full struct flashchip into probes
In case we want to probe for a particular chip, we can filter the
actual probing sequences by its properties.
We'll use `struct flashchip` internally and `struct flashprog_chip`
will be used only close to the libflashprog API. This way, we can
separate the two later again if necessary.
Change-Id: Id8b13d28fcaefee62746c9391fe86b4b3b09a428
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/441
diff --git a/spi95.c b/spi95.c
index 1ffa00f..70a2074 100644
--- a/spi95.c
+++ b/spi95.c
@@ -25,7 +25,9 @@
#include "spi.h"
/* For ST95XXX chips which have RDID */
-struct found_id *probe_spi_st95(const struct bus_probe *probe, const struct master_common *mst)
+struct found_id *probe_spi_st95(const struct bus_probe *probe,
+ const struct master_common *mst,
+ const struct flashchip *chip)
{
/*
* ST_M95_RDID_OUTSIZE depends on size of the flash and