drivers/spi/spi_flash: Use boot_device_spi_flash to obtain spi_flash structure
commitf422fd2c78b8a7ab58e75ba7bd13b0c354a207b8
authorFurquan Shaikh <furquan@chromium.org>
Sun, 7 May 2017 20:05:39 +0000 (7 13:05 -0700)
committerFurquan Shaikh <furquan@google.com>
Fri, 19 May 2017 19:20:54 +0000 (19 21:20 +0200)
tree028f91f665a4d2d065d9c90d5615a5c7a15deaf1
parent78bc6ddfd0be8e88d589b51a8c5f2e240804266c
drivers/spi/spi_flash: Use boot_device_spi_flash to obtain spi_flash structure

Instead of storing spi flash device structure in spi flash driver, use
boot_device_spi_flash callback to obtain pointer to boot device spi
flash structure.

BUG=b:38330715

Change-Id: Idd50b7644d1a4be8b62d38cc9239feae2215103c
Signed-off-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: https://review.coreboot.org/19703
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
src/drivers/spi/spi_flash.c