add a void * member to the opaque_programmer struct
This adds a void * member to the opaque_programmer struct which will
allow us to better abstract some details between GEC LPC and I2C
variants.
This change was actually made in upstream flashrom as well (r1475).
BUG=none
TEST=Tested on Arrow using the follow-up gec_lpc CL
Change-Id: Id20dfc76bc415835bef2695fd92c011de076821f
Reviewed-on: https://gerrit.chromium.org/gerrit/23594
Reviewed-by: Yung-Chieh Lo <yjlou%chromium.org@gtempaccount.com>
Commit-Ready: David Hendricks <dhendrix@chromium.org>
Tested-by: David Hendricks <dhendrix@chromium.org>
diff --git a/programmer.h b/programmer.h
index 2d2749e..66a75c9 100644
--- a/programmer.h
+++ b/programmer.h
@@ -641,6 +641,7 @@
int (*read) (struct flashchip *flash, uint8_t *buf, unsigned int start, unsigned int len);
int (*write) (struct flashchip *flash, uint8_t *buf, unsigned int start, unsigned int len);
int (*erase) (struct flashchip *flash, unsigned int blockaddr, unsigned int blocklen);
+ const void *data;
};
extern const struct opaque_programmer *opaque_programmer;
void register_opaque_programmer(const struct opaque_programmer *pgm);