summaryrefslogtreecommitdiffstats
path: root/it8212.c
diff options
context:
space:
mode:
authorEdward O'Callaghan <quasisec@google.com>2022-09-07 10:47:45 +1000
committerFelix Singer <felixsinger@posteo.net>2022-09-27 04:30:43 +0000
commit4b503bee39e8761d7c4ff910562448c488da2b7e (patch)
tree607c6f60053457adf49344f4ab77f203ed4bde54 /it8212.c
parent3d7905178da44a8908ee3724de527e0af3d50704 (diff)
downloadflashrom-4b503bee39e8761d7c4ff910562448c488da2b7e.tar.gz
flashrom-4b503bee39e8761d7c4ff910562448c488da2b7e.tar.bz2
flashrom-4b503bee39e8761d7c4ff910562448c488da2b7e.zip
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 'it8212.c')
-rw-r--r--it8212.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/it8212.c b/it8212.c
index 18d1173bf..9b4a2638c 100644
--- a/it8212.c
+++ b/it8212.c
@@ -113,5 +113,4 @@ const struct programmer_entry programmer_it8212 = {
.init = it8212_init,
.map_flash_region = fallback_map,
.unmap_flash_region = fallback_unmap,
- .delay = internal_delay,
};