const'ify flashctx to align signatures with cros flashrom

The ChromiumOS flashrom fork has since const'ify flashctx
in a few places. This aligns the function signatures to
match with downstream to ease forward porting patches
out of downstream back into mainline flashrom.

This patch is minimum viable alignment and so feedback is

Change-Id: Iff6dbda13cb0d941481c0d204b9c30895630fbd1
Signed-off-by: Edward O'Callaghan <>
Reviewed-by: Angel Pons <>
Tested-by: build bot (Jenkins) <>
26 files changed