libflashprog: Add new API to probe all buses for chips
The new flashprog_chips_probe() will supersede our existing logic to
probe for an unspecified chip. It returns an enumeration of detected
chips. It's up to the caller to handle multiple chip matches.
Change-Id: I21ec201b92289995430130d72823fe4ca8b03bb6
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/483
diff --git a/libflashprog.map b/libflashprog.map
index 709db87..033d5f8 100644
--- a/libflashprog.map
+++ b/libflashprog.map
@@ -11,6 +11,7 @@
flashprog_chip_voltage_range;
flashprog_chips_all;
flashprog_chips_count;
+ flashprog_chips_probe;
flashprog_chips_release;
flashprog_flag_get;
flashprog_flag_set;