diff options
author | Gabe Black <gabeblack@google.com> | 2014-03-27 20:37:03 -0700 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2014-07-05 11:36:11 +0200 |
commit | 1e187356e831583830a22cf051c792470d0440f5 (patch) | |
tree | 0f93f902d12778717c8333328edf7a6715dc500f /src/ec/google | |
parent | ab605108184e53964e6f6a2300a1983aa7166422 (diff) | |
download | coreboot-1e187356e831583830a22cf051c792470d0440f5.tar.xz |
spi: Remove unused parameters from spi_flash_probe and setup_spi_slave.
The spi_flash_probe and and spi_setup_slave functions each took a max_hz
parameter and a spi_mode parameter which were never used.
BUG=None
TEST=Built for link, falco, rambi, nyan.
BRANCH=None
Change-Id: I3a2e0a9ab530bcc0f722f81f00e8c7bd1f6d2a22
Signed-off-by: Gabe Black <gabeblack@google.com>
Reviewed-on: https://chromium-review.googlesource.com/192046
Reviewed-by: Gabe Black <gabeblack@chromium.org>
Tested-by: Gabe Black <gabeblack@chromium.org>
Commit-Queue: Gabe Black <gabeblack@chromium.org>
[km: cherry-pick from chromium]
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/6174
Tested-by: build bot (Jenkins)
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'src/ec/google')
-rw-r--r-- | src/ec/google/chromeec/ec_spi.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/ec/google/chromeec/ec_spi.c b/src/ec/google/chromeec/ec_spi.c index cc2c9baba6..012a4cace5 100644 --- a/src/ec/google/chromeec/ec_spi.c +++ b/src/ec/google/chromeec/ec_spi.c @@ -23,8 +23,6 @@ #include "ec.h" #include "ec_commands.h" -#define CROSEC_SPI_SPEED (500000) - static int crosec_spi_io(uint8_t *write_bytes, size_t write_size, uint8_t *read_bytes, size_t read_size, void *context) @@ -48,12 +46,9 @@ static int crosec_spi_io(uint8_t *write_bytes, size_t write_size, int google_chromeec_command(struct chromeec_command *cec_command) { static struct spi_slave *slave = NULL; - if (!slave) { + if (!slave) slave = spi_setup_slave(CONFIG_EC_GOOGLE_CHROMEEC_SPI_BUS, - CONFIG_EC_GOOGLE_CHROMEEC_SPI_CHIP, - CROSEC_SPI_SPEED, - SPI_READ_FLAG | SPI_WRITE_FLAG); - } + CONFIG_EC_GOOGLE_CHROMEEC_SPI_CHIP); return crosec_command_proto(cec_command, crosec_spi_io, slave); } |