diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-05-31 15:27:27 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-05-31 15:27:27 +0000 |
commit | 71127727dcff4f7e70b318d7a5eb87f0c8fcc4d7 (patch) | |
tree | ecd2ba9f67c51b833d22051628b79ccb1dcde0a2 /spi.c | |
parent | a0020df6309e4536fcb97bd93bc46e2068f0ffe8 (diff) | |
download | flashrom-71127727dcff4f7e70b318d7a5eb87f0c8fcc4d7.tar.gz flashrom-71127727dcff4f7e70b318d7a5eb87f0c8fcc4d7.tar.bz2 flashrom-71127727dcff4f7e70b318d7a5eb87f0c8fcc4d7.zip |
So far, we have up to 4 different names for the same thing (ignoring capitalization)
CONFIG_FT2232SPI (makefile config option)
FT2232_SPI_SUPPORT (#define)
ft2232spi (programmer name)
ft2232_spi.c (programmer file)
Use CONFIG_* with underscores for makefile config options and #defines
and kill the useless _SUPPORT idiom.
Use lowercase names with underscores for programmer names and programmer
files.
With this, you can run "grep -i ft2232_spi" and find everything related
to the ft2232_spi driver. Same applies to all other programmers.
Corresponding to flashrom svn r1023.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Diffstat (limited to 'spi.c')
-rw-r--r-- | spi.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -40,7 +40,7 @@ const struct spi_programmer spi_programmer[] = { .write_256 = NULL, }, -#if INTERNAL_SUPPORT == 1 +#if CONFIG_INTERNAL == 1 #if defined(__i386__) || defined(__x86_64__) { /* SPI_CONTROLLER_ICH7 */ .command = ich_spi_send_command, @@ -86,7 +86,7 @@ const struct spi_programmer spi_programmer[] = { #endif #endif -#if FT2232_SPI_SUPPORT == 1 +#if CONFIG_FT2232_SPI == 1 { /* SPI_CONTROLLER_FT2232 */ .command = ft2232_spi_send_command, .multicommand = default_spi_send_multicommand, @@ -95,7 +95,7 @@ const struct spi_programmer spi_programmer[] = { }, #endif -#if DUMMY_SUPPORT == 1 +#if CONFIG_DUMMY == 1 { /* SPI_CONTROLLER_DUMMY */ .command = dummy_spi_send_command, .multicommand = default_spi_send_multicommand, @@ -104,7 +104,7 @@ const struct spi_programmer spi_programmer[] = { }, #endif -#if BUSPIRATE_SPI_SUPPORT == 1 +#if CONFIG_BUSPIRATE_SPI == 1 { /* SPI_CONTROLLER_BUSPIRATE */ .command = buspirate_spi_send_command, .multicommand = default_spi_send_multicommand, @@ -113,7 +113,7 @@ const struct spi_programmer spi_programmer[] = { }, #endif -#if DEDIPROG_SUPPORT == 1 +#if CONFIG_DEDIPROG == 1 { /* SPI_CONTROLLER_DEDIPROG */ .command = dediprog_spi_send_command, .multicommand = default_spi_send_multicommand, @@ -214,7 +214,7 @@ int spi_chip_write_256(struct flashchip *flash, uint8_t *buf) uint32_t spi_get_valid_read_addr(void) { switch (spi_controller) { -#if INTERNAL_SUPPORT == 1 +#if CONFIG_INTERNAL == 1 #if defined(__i386__) || defined(__x86_64__) case SPI_CONTROLLER_ICH7: /* Return BBAR for ICH chipsets. */ |