flashbench: move nr-of-aus-detection into its own function

With this change, the program basically gets usable
from the command line.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 file changed
tree: 57f67f4f0779f05c37be9c2a8d6eda9e48e65faf
  1. dev.c
  2. dev.h
  3. erase.c
  4. flashbench.c
  5. Makefile
  6. vm.c
  7. vm.h