Changeset 1414


Ignore:
Timestamp:
08/16/11 14:08:22 (9 months ago)
Author:
stefanct
Message:

Remove unneeded inclusions of chipdrivers.h

this is related to the spi split patch as discussed in:
http://www.flashrom.org/pipermail/flashrom/2010-February/thread.html#2364
the old commit (r914) log notes:
"Some of the spi programmer drivers required chipdrivers.h, needs fixing later: it87spi.c

ichspi.c sb600spi.c wbsio_spi.c buspirate_spi.c ft2232spi.c bitbang_spi.c dediprog.c"

there still remain a few cases where chipdrivers.h is needed:
dediprog.c (spi_read_chunked and spi_write_chunked)
it87spi.c (due to spi_write_enable and spi_read_status_register)
wbsio_spi.c (spi_programmer registration only)

besides that, there are also non-spi files that do not need it.
also, add flash.h to chipdrivers.h because it uses some types of it
and remove flashchips.h from print.c

Signed-off-by: Stefan Tauner <stefan.tauner@…>
Acked-by: Stefan Tauner <stefan.tauner@…>

Location:
trunk
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/bitbang_spi.c

    r1397 r1414  
    2323#include <ctype.h> 
    2424#include "flash.h" 
    25 #include "chipdrivers.h" 
    2625#include "programmer.h" 
    2726#include "spi.h" 
  • trunk/buspirate_spi.c

    r1413 r1414  
    2424#include <unistd.h> 
    2525#include "flash.h" 
    26 #include "chipdrivers.h" 
    2726#include "programmer.h" 
    2827#include "spi.h" 
  • trunk/chipdrivers.h

    r1316 r1414  
    2525#ifndef __CHIPDRIVERS_H__ 
    2626#define __CHIPDRIVERS_H__ 1 
     27 
     28#include "flash.h"      /* for chipaddr and flashchip */ 
    2729 
    2830/* spi.c, should probably be in spi_chip.c */ 
  • trunk/ft2232_spi.c

    r1413 r1414  
    2626#include <ctype.h> 
    2727#include "flash.h" 
    28 #include "chipdrivers.h" 
    2928#include "programmer.h" 
    3029#include "spi.h" 
  • trunk/ichspi.c

    r1409 r1414  
    2828#include <string.h> 
    2929#include "flash.h" 
    30 #include "chipdrivers.h" 
    3130#include "programmer.h" 
    3231#include "spi.h" 
  • trunk/it85spi.c

    r1413 r1414  
    3131#include <stdlib.h> 
    3232#include "flash.h" 
    33 #include "chipdrivers.h" 
    3433#include "spi.h" 
    3534#include "programmer.h" 
  • trunk/jedec.c

    r1353 r1414  
    2424 
    2525#include "flash.h" 
    26 #include "chipdrivers.h" 
    2726 
    2827#define MAX_REFLASH_TRIES 0x10 
  • trunk/pm49fl00x.c

    r1068 r1414  
    2222 
    2323#include "flash.h" 
    24 #include "chipdrivers.h" 
    2524 
    2625static void write_lockbits_49fl00x(chipaddr bios, int size, 
  • trunk/print.c

    r1411 r1414  
    2424#include <stdlib.h> 
    2525#include "flash.h" 
    26 #include "flashchips.h" 
    2726#include "programmer.h" 
    2827 
  • trunk/sb600spi.c

    r1299 r1414  
    2525 
    2626#include "flash.h" 
    27 #include "chipdrivers.h" 
    2827#include "programmer.h" 
    2928#include "spi.h" 
  • trunk/sst_fwhub.c

    r1068 r1414  
    2424 
    2525#include "flash.h" 
    26 #include "chipdrivers.h" 
    2726 
    2827static int check_sst_fwhub_block_lock(struct flashchip *flash, int offset) 
  • trunk/w29ee011.c

    r1391 r1414  
    2121#include <string.h> 
    2222#include "flash.h" 
    23 #include "chipdrivers.h" 
    2423 
    2524/* According to the Winbond W29EE011, W29EE012, W29C010M, W29C011A 
  • trunk/w39.c

    r1386 r1414  
    2121 
    2222#include "flash.h" 
    23 #include "chipdrivers.h" 
    2423 
    2524static int printlock_w39_fwh_block(struct flashchip *flash, int offset) 
Note: See TracChangeset for help on using the changeset viewer.