summaryrefslogtreecommitdiffstats
path: root/nicintel_eeprom.c
diff options
context:
space:
mode:
authorEdward O'Callaghan <quasisec@google.com>2022-08-12 13:37:13 +1000
committerAnastasia Klimchuk <aklm@chromium.org>2022-09-07 01:50:58 +0000
commit1233e638336f2d67be57b31bb769aa85aa5bd583 (patch)
tree4956b812498cfcc0d33e16a15620abb6be28a68a /nicintel_eeprom.c
parente316f1970d9c51ab167be0835a4cfbadf92e9653 (diff)
downloadflashrom-1233e638336f2d67be57b31bb769aa85aa5bd583.tar.gz
flashrom-1233e638336f2d67be57b31bb769aa85aa5bd583.tar.bz2
flashrom-1233e638336f2d67be57b31bb769aa85aa5bd583.zip
tree: Allow passing programmer_cfg directly to programmer
Modify the type signature of each programmer entry-point xxx_init() functions to allow for the consumption of the programmer parameterisation string data. ``` $ find -name '*.c' -exec sed -i 's/_init(void)/_init(const char *prog_param)/g' '{}' \; $ find -name '*.c' -exec sed -i 's/get_params(/get_params(const char *prog_param, /g' '{}' \; $ find -name '*.c' -exec sed -i 's/const char \*prog_param)/const struct programmer_cfg *cfg)/g' '{}' \; $ find -name '*.c' -exec sed -i 's/const char \*prog_param,/const struct programmer_cfg *cfg,/g' '{}' \; ``` and manually fix up any remaining parts. Change-Id: I8bab51a635b9d3a43e1619a7a32b334f4ce2cdd2 Signed-off-by: Edward O'Callaghan <quasisec@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/66655 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-by: Felix Singer <felixsinger@posteo.net>
Diffstat (limited to 'nicintel_eeprom.c')
-rw-r--r--nicintel_eeprom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nicintel_eeprom.c b/nicintel_eeprom.c
index c09c1d117..8e59a4585 100644
--- a/nicintel_eeprom.c
+++ b/nicintel_eeprom.c
@@ -479,7 +479,7 @@ static const struct opaque_master opaque_master_nicintel_ee_i210 = {
.shutdown = nicintel_ee_shutdown_i210,
};
-static int nicintel_ee_init(void)
+static int nicintel_ee_init(const struct programmer_cfg *cfg)
{
const struct opaque_master *mst;
uint32_t eec = 0;