summaryrefslogtreecommitdiffstats
path: root/src/include/spi-generic.h
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2014-03-27 20:37:03 -0700
committerKyösti Mälkki <kyosti.malkki@gmail.com>2014-07-05 11:36:11 +0200
commit1e187356e831583830a22cf051c792470d0440f5 (patch)
tree0f93f902d12778717c8333328edf7a6715dc500f /src/include/spi-generic.h
parentab605108184e53964e6f6a2300a1983aa7166422 (diff)
downloadcoreboot-1e187356e831583830a22cf051c792470d0440f5.tar.gz
coreboot-1e187356e831583830a22cf051c792470d0440f5.tar.bz2
coreboot-1e187356e831583830a22cf051c792470d0440f5.zip
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/include/spi-generic.h')
-rw-r--r--src/include/spi-generic.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/include/spi-generic.h b/src/include/spi-generic.h
index 6cdb87a7e74a..b7a14f9342a7 100644
--- a/src/include/spi-generic.h
+++ b/src/include/spi-generic.h
@@ -84,14 +84,11 @@ void spi_init(void);
*
* bus: Bus ID of the slave chip.
* cs: Chip select ID of the slave chip on the specified bus.
- * max_hz: Maximum SCK rate in Hz.
- * mode: Clock polarity, clock phase and other parameters.
*
* Returns: A spi_slave reference that can be used in subsequent SPI
* calls, or NULL if one or more of the parameters are not supported.
*/
-struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,
- unsigned int max_hz, unsigned int mode);
+struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs);
/*-----------------------------------------------------------------------
* Claim the bus and prepare it for communication with a given slave.