linux_spi, file: delete device search, sync with upstream
The check_sysfs() function in linux_spi would try to find a SPI device
for the programmer to use by searching /sys/bus/spi/devices and picking
the first one it found. This was a brittle solution and can be deleted
now that all ARM devices have been been updated to use the MTD interface
instead.
This also allows the helper functions in file.{c,h} to be deleted.
BUG=b:153598437
BRANCH=none
TEST=builds
Cq-Depend: chromium:2654791
Signed-off-by: Nikolai Artemiev <nartemiev@google.com>
Change-Id: I59f6f4ec07e34321f2d102bf69969b7d5c7eaedd
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/2902170
Commit-Queue: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-by: Sam McNally <sammc@chromium.org>
6 files changed