From 67c7dcc26f4ff449d915d6610c8a453821877bb0 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Fri, 15 Jun 2012 22:28:12 +0000 Subject: Let the programmer driver decide how to do AAI transfers Currently spi_aai_write() is implemented without an abstraction mechanism for the programmer driver. This adds another function pointer 'write_aai' to struct spi_programmer, which is set to default_spi_write_aai (renamed spi_aai_write) for all programmers for now. A patch which utilises this abstraction in the dediprog driver will follow. Corresponding to flashrom svn r1543. Signed-off-by: Nico Huber Acked-by: Carl-Daniel Hailfinger --- ft2232_spi.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ft2232_spi.c') diff --git a/ft2232_spi.c b/ft2232_spi.c index aec2fd5..a5d3828 100644 --- a/ft2232_spi.c +++ b/ft2232_spi.c @@ -148,6 +148,7 @@ static const struct spi_programmer spi_programmer_ft2232 = { .multicommand = default_spi_send_multicommand, .read = default_spi_read, .write_256 = default_spi_write_256, + .write_aai = default_spi_write_aai, }; /* Returns 0 upon success, a negative number upon errors. */ -- cgit v1.1