Changeset 1474 for trunk/sb600spi.c


Ignore:
Timestamp:
Dec 18, 2011 4:01:24 PM (18 months ago)
Author:
hailfinger
Message:

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.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@…>
Acked-by: Michael Karcher <flashrom@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sb600spi.c

    r1422 r1474  
    8989} 
    9090 
    91 static int sb600_spi_send_command(unsigned int writecnt, unsigned int readcnt, 
    92                       const unsigned char *writearr, unsigned char *readarr) 
     91static int sb600_spi_send_command(struct flashctx *flash, unsigned int writecnt, 
     92                                  unsigned int readcnt, 
     93                                  const unsigned char *writearr, 
     94                                  unsigned char *readarr) 
    9395{ 
    9496        int count; 
Note: See TracChangeset for help on using the changeset viewer.