cli_classic: Use libflashprog's probing and enumeration APIs

Now that the probing API is more powerful and handles multiple chip
matches just like the CLI, we can save a few lines and have cleaner
code. What is left is the forced chip probing (for forced reads),
which isn't and probably shouldn't be supported by the API.

Change-Id: I3227fff8e44ff41b61c2b5f500130b01543f4b58
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/486
diff --git a/libflashprog.c b/libflashprog.c
index 411264d..900ecc2 100644
--- a/libflashprog.c
+++ b/libflashprog.c
@@ -227,7 +227,8 @@
 	return ret;
 }
 
-static const struct flashchip *flashprog_chip_by_name(const char *chip_name)
+/** @private */
+const struct flashchip *flashprog_chip_by_name(const char *chip_name)
 {
 	const struct flashchip *chip;
 	for (chip = flashchips; chip->name; ++chip) {