diff options
author | Edward O'Callaghan <quasisec@google.com> | 2022-09-07 10:47:45 +1000 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2022-09-27 04:30:43 +0000 |
commit | 4b503bee39e8761d7c4ff910562448c488da2b7e (patch) | |
tree | 607c6f60053457adf49344f4ab77f203ed4bde54 /linux_spi.c | |
parent | 3d7905178da44a8908ee3724de527e0af3d50704 (diff) | |
download | flashrom-git-4b503bee39e8761d7c4ff910562448c488da2b7e.tar.gz |
drivers/: Make 'internal_delay' the default unless defined
Drop the explicit need to specify the default 'internal_delay'
callback function pointer in the programmer_entry struct.
This is a reasonable default for every other driver in the
tree with only the two exceptions of ch341a_spi.c and serprog.c.
Thus this simplifies driver development.
Change-Id: I17460bc2c0aebcbb48c8dfa052b260991525cc49
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/67391
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Thomas Heijligen <src@posteo.de>
Reviewed-by: Felix Singer <felixsinger@posteo.net>
Reviewed-by: Nikolai Artemiev <nartemiev@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'linux_spi.c')
-rw-r--r-- | linux_spi.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/linux_spi.c b/linux_spi.c index 09ee8a0d..b51d9e98 100644 --- a/linux_spi.c +++ b/linux_spi.c @@ -253,5 +253,4 @@ const struct programmer_entry programmer_linux_spi = { .init = linux_spi_init, .map_flash_region = fallback_map, .unmap_flash_region = fallback_unmap, - .delay = internal_delay, }; |