summaryrefslogtreecommitdiffstats
path: root/sb600spi.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2011-12-18 15:01:24 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2011-12-18 15:01:24 +0000
commit9e15fce8945a4611343b083b94ed8d0de8d43c5f (patch)
tree3a5514d022392cf4d8fa368f9f02653da21a93ca /sb600spi.c
parent4303a77daaed729c507182667d0704a114c4b157 (diff)
downloadflashrom-9e15fce8945a4611343b083b94ed8d0de8d43c5f.zip
flashrom-9e15fce8945a4611343b083b94ed8d0de8d43c5f.tar.gz
Add struct flashctx * parameter to all functions accessing flash chips
All programmer access function prototypes except init have been made static and moved to the respective file. A few internal functions in flash chip drivers had chipaddr parameters which are no longer needed. The lines touched by flashctx changes have been adjusted to 80 columns except in header files. Corresponding to flashrom svn r1474. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
Diffstat (limited to 'sb600spi.c')
-rw-r--r--sb600spi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sb600spi.c b/sb600spi.c
index 9d82b47..c3d7710 100644
--- a/sb600spi.c
+++ b/sb600spi.c
@@ -88,8 +88,10 @@ static void execute_command(void)
;
}
-static int sb600_spi_send_command(unsigned int writecnt, unsigned int readcnt,
- const unsigned char *writearr, unsigned char *readarr)
+static int sb600_spi_send_command(struct flashctx *flash, unsigned int writecnt,
+ unsigned int readcnt,
+ const unsigned char *writearr,
+ unsigned char *readarr)
{
int count;
/* First byte is cmd which can not being sent through FIFO. */
OpenPOWER on IntegriCloud