From 1e187356e831583830a22cf051c792470d0440f5 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Thu, 27 Mar 2014 20:37:03 -0700 Subject: spi: Remove unused parameters from spi_flash_probe and setup_spi_slave. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-on: https://chromium-review.googlesource.com/192046 Reviewed-by: Gabe Black Tested-by: Gabe Black Commit-Queue: Gabe Black [km: cherry-pick from chromium] Signed-off-by: Kyösti Mälkki Reviewed-on: http://review.coreboot.org/6174 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan Reviewed-by: Paul Menzel Reviewed-by: Patrick Georgi --- src/include/spi-generic.h | 5 +---- src/include/spi_flash.h | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'src/include') diff --git a/src/include/spi-generic.h b/src/include/spi-generic.h index 6cdb87a7e7..b7a14f9342 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. diff --git a/src/include/spi_flash.h b/src/include/spi_flash.h index 8e514719a1..61c931e32c 100644 --- a/src/include/spi_flash.h +++ b/src/include/spi_flash.h @@ -64,8 +64,7 @@ struct spi_flash { size_t len); }; -struct spi_flash *spi_flash_probe(unsigned int bus, unsigned int cs, - unsigned int max_hz, unsigned int spi_mode); +struct spi_flash *spi_flash_probe(unsigned int bus, unsigned int cs); static inline int spi_flash_read(struct spi_flash *flash, u32 offset, size_t len, void *buf) -- cgit v1.2.3