diff options
author | Furquan Shaikh <furquan@chromium.org> | 2017-05-15 23:28:41 -0700 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2017-05-19 21:22:41 +0200 |
commit | bd9e32efdd8f06063c9ee37dd6d0bebf535b86c1 (patch) | |
tree | 3c9ed696ad5c71ce8616a3ddabb324b75d1f8061 /src/drivers/spi/sst.c | |
parent | 7863395ad19b1c068479546e0b8b3eb3c828062a (diff) | |
download | coreboot-bd9e32efdd8f06063c9ee37dd6d0bebf535b86c1.tar.xz |
drivers/spi/spi_flash: Pass in spi_slave structure as const to probe functions
Pointer to spi_slave structure can be passed in as const to spi flash
probe functions since the probe functions do not need to modify the
slave properties.
BUG=b:38330715
Change-Id: I956ee777c62dbb811fd6ce2aeb6ae090e1892acd
Signed-off-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: https://review.coreboot.org/19707
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers/spi/sst.c')
-rw-r--r-- | src/drivers/spi/sst.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/spi/sst.c b/src/drivers/spi/sst.c index bf211571e1..5325ef4e86 100644 --- a/src/drivers/spi/sst.c +++ b/src/drivers/spi/sst.c @@ -314,7 +314,7 @@ sst_unlock(const struct spi_flash *flash) return ret; } -int spi_flash_probe_sst(struct spi_slave *spi, u8 *idcode, +int spi_flash_probe_sst(const struct spi_slave *spi, u8 *idcode, struct spi_flash *flash) { const struct sst_spi_flash_params *params; |