drivers/spi: Get rid of spi_get_config
commit5bda642bcb0fc6004f08d8acdfe0e71d5b3c5012
authorFurquan Shaikh <furquan@chromium.org>
Fri, 7 Apr 2017 14:13:24 +0000 (7 07:13 -0700)
committerFurquan Shaikh <furquan@google.com>
Sun, 9 Apr 2017 19:35:53 +0000 (9 21:35 +0200)
tree3fa8c5bb5384ec5adc98d9dcd4195be4a7c063a1
parentbc17cdef0d3370f10f43ef45272399e3103eb01b
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)
src/drivers/spi/acpi/acpi.c
src/drivers/spi/spi-generic.c
src/include/spi-generic.h
src/soc/intel/common/block/gspi/gspi.c