From 4b503bee39e8761d7c4ff910562448c488da2b7e Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Wed, 7 Sep 2022 10:47:45 +1000 Subject: 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 Reviewed-on: https://review.coreboot.org/c/flashrom/+/67391 Reviewed-by: Peter Marheine Reviewed-by: Angel Pons Reviewed-by: Thomas Heijligen Reviewed-by: Felix Singer Reviewed-by: Nikolai Artemiev Tested-by: build bot (Jenkins) --- it8212.c | 1 - 1 file changed, 1 deletion(-) (limited to 'it8212.c') 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, }; -- cgit v1.2.3