summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-05-18 10:40:26 +1000
committerPatrick Georgi <patrick@georgi-clan.de>2014-05-18 18:05:42 +0200
commit9c8532b350d00dbd1aa184f162ef0448c941c822 (patch)
tree21d1eb7404389b3d930f232f2fd8d00acbd19945 /src
parent40788c6a4e5e9b5172c3c8c5752b9c3cd50af78c (diff)
downloadcoreboot-9c8532b350d00dbd1aa184f162ef0448c941c822.tar.xz
drivers/spi/sst.c: Remove unused func to_sst_spi_flash()
Trips up clang builds with a warn treated as error. Change-Id: I9c0e2930ba8a60c7ad6063e9826b1b8638185505 Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-on: http://review.coreboot.org/5779 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/spi/sst.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/drivers/spi/sst.c b/src/drivers/spi/sst.c
index 8cf3f964fd..3cf6c509bf 100644
--- a/src/drivers/spi/sst.c
+++ b/src/drivers/spi/sst.c
@@ -46,11 +46,6 @@ struct sst_spi_flash {
const struct sst_spi_flash_params *params;
};
-static inline struct sst_spi_flash *to_sst_spi_flash(struct spi_flash *flash)
-{
- return container_of(flash, struct sst_spi_flash, flash);
-}
-
#define SST_SECTOR_SIZE (4 * 1024)
static const struct sst_spi_flash_params sst_spi_flash_table[] = {
{