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) --- realtek_mst_i2c_spi.c | 1 - 1 file changed, 1 deletion(-) (limited to 'realtek_mst_i2c_spi.c') diff --git a/realtek_mst_i2c_spi.c b/realtek_mst_i2c_spi.c index 74458c8e7..9637eca27 100644 --- a/realtek_mst_i2c_spi.c +++ b/realtek_mst_i2c_spi.c @@ -546,5 +546,4 @@ const struct programmer_entry programmer_realtek_mst_i2c_spi = { .init = realtek_mst_i2c_spi_init, .map_flash_region = fallback_map, .unmap_flash_region = fallback_unmap, - .delay = internal_delay, }; -- cgit v1.2.3