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. Makefile
  2. dev.c
  3. dev.h
  4. erase.c
  5. flashbench.c
  6. vm.c
  7. vm.h