While I was hacking around to prepare for the probing rewrite I have found a few things that could be improved. This is the first batch of such changes that are not directly related to the probing, could easily be factored out and make sense even without the new proving IMHO.
The existence and naming of helpers.c was discussed previously in the context of layout patches (in case you seem to have a deja vu ;).
Stefan Tauner (5): Fix FWH IDSEL message printing. Move check_chip_supported() to cli_classic.c. Introduce helpers.c. Refine handling chips that exceed maximum programmer sizes. Reorder and cleanup feature flags.
Makefile | 2 +- chipset_enable.c | 14 +++--- cli_classic.c | 83 ++++++++++++++++++++++++++++++++++-- flash.h | 19 +++++---- flashchips.c | 9 +--- flashrom.c | 127 ++++--------------------------------------------------- helpers.c | 60 ++++++++++++++++++++++++++ programmer.h | 3 +- 8 files changed, 168 insertions(+), 149 deletions(-) create mode 100644 helpers.c