mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 22:43:17 +02:00
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>
This commit is contained in:
8
a25.c
8
a25.c
@ -33,7 +33,7 @@ int spi_prettyprint_status_register_amic_a25l05p(struct flashctx *flash)
|
||||
{
|
||||
uint8_t status;
|
||||
|
||||
status = spi_read_status_register();
|
||||
status = spi_read_status_register(flash);
|
||||
msg_cdbg("Chip status register is %02x\n", status);
|
||||
|
||||
spi_prettyprint_status_register_amic_a25_srwd(status);
|
||||
@ -49,7 +49,7 @@ int spi_prettyprint_status_register_amic_a25l40p(struct flashctx *flash)
|
||||
{
|
||||
uint8_t status;
|
||||
|
||||
status = spi_read_status_register();
|
||||
status = spi_read_status_register(flash);
|
||||
msg_cdbg("Chip status register is %02x\n", status);
|
||||
|
||||
spi_prettyprint_status_register_amic_a25_srwd(status);
|
||||
@ -64,7 +64,7 @@ int spi_prettyprint_status_register_amic_a25l032(struct flashctx *flash)
|
||||
{
|
||||
uint8_t status;
|
||||
|
||||
status = spi_read_status_register();
|
||||
status = spi_read_status_register(flash);
|
||||
msg_cdbg("Chip status register is %02x\n", status);
|
||||
|
||||
spi_prettyprint_status_register_amic_a25_srwd(status);
|
||||
@ -82,7 +82,7 @@ int spi_prettyprint_status_register_amic_a25lq032(struct flashctx *flash)
|
||||
{
|
||||
uint8_t status;
|
||||
|
||||
status = spi_read_status_register();
|
||||
status = spi_read_status_register(flash);
|
||||
msg_cdbg("Chip status register is %02x\n", status);
|
||||
|
||||
spi_prettyprint_status_register_amic_a25_srwd(status);
|
||||
|
Reference in New Issue
Block a user