summaryrefslogtreecommitdiff
path: root/src/drivers/spi/spi-generic.c
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@chromium.org>2017-04-07 07:13:24 -0700
committerFurquan Shaikh <furquan@google.com>2017-04-09 21:35:53 +0200
commit5bda642bcb0fc6004f08d8acdfe0e71d5b3c5012 (patch)
tree3fa8c5bb5384ec5adc98d9dcd4195be4a7c063a1 /src/drivers/spi/spi-generic.c
parentbc17cdef0d3370f10f43ef45272399e3103eb01b (diff)
downloadcoreboot-5bda642bcb0fc6004f08d8acdfe0e71d5b3c5012.tar.xz
drivers/spi: Get rid of spi_get_config
There is only one user for spi_get_config i.e. SPI ACPI. Also, the values provided by spi_get_config are constant for now. Thus, get rid of the spi_get_config call and fill in these constant values in SPI ACPI code itself. If there is a need in the future to change these, appropriate device-tree configs can be added. BUG=b:36873582 Change-Id: Ied38e2670784ee3317bb12e542666c224bd9e819 Signed-off-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: https://review.coreboot.org/19203 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/drivers/spi/spi-generic.c')
-rw-r--r--src/drivers/spi/spi-generic.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/drivers/spi/spi-generic.c b/src/drivers/spi/spi-generic.c
index 3ef437c4a7..805e17af5a 100644
--- a/src/drivers/spi/spi-generic.c
+++ b/src/drivers/spi/spi-generic.c
@@ -88,16 +88,6 @@ int spi_xfer(const struct spi_slave *slave, const void *dout, size_t bytesout,
return -1;
}
-int spi_get_config(const struct spi_slave *slave, struct spi_cfg *cfg)
-{
- const struct spi_ctrlr *ctrlr = slave->ctrlr;
-
- if (ctrlr && ctrlr->get_config)
- return ctrlr->get_config(slave, cfg);
-
- return -1;
-}
-
void __attribute__((weak)) spi_init(void)
{
/* Default weak implementation - do nothing. */