flashrom.c: Make write granularity a chip attribute

Aligns most with the upstream `commit 50d67aaa794`. Since
`write_gran_256bytes = 0` this should be a nop provided
chips structs are zero initialized for which they are.

BUG=chromium:478356
BRANCH=none
TEST=still builds

Change-Id: If3a0b3cca8843178ae2c3355a06409bda07f17df
Signed-off-by: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/1667510
Reviewed-by: Stefan Reinauer <reinauer@google.com>
diff --git a/flash.h b/flash.h
index 1eb3411..b74b428 100644
--- a/flash.h
+++ b/flash.h
@@ -236,6 +236,7 @@
 	int (*write_status) (const struct flashctx *flash, int status);
 	int (*check_access) (const struct flashctx *flash, unsigned int start, unsigned int len, int read);
 	struct voltage_range voltage;
+	enum write_granularity gran;
 	struct wp *wp;
 };