1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-01 22:21:16 +02:00

Add str extension to extract_programmer_param function name

This patch changes the function name of extract_programmer_param() to
extract_programmer_param_str() as this function name will clearly
specify that it returns the value of the given parameter as a string.

Signed-off-by: Chinmay Lonkar <chinmay20220@gmail.com>
Change-Id: Id7b9fff4d3e1de22abd31b8123a1d237cd0f5c97
Reviewed-on: https://review.coreboot.org/c/flashrom/+/65521
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Singer <felixsinger@posteo.net>
Reviewed-by: Thomas Heijligen <src@posteo.de>
This commit is contained in:
Chinmay Lonkar
2022-06-28 21:44:04 +05:30
committed by Thomas Heijligen
parent f0fae1a9a5
commit 1bb5ddde60
31 changed files with 81 additions and 81 deletions

View File

@ -552,7 +552,7 @@ static int ni845x_spi_init(void)
int32 tmp = 0;
// read the cs parameter (which Chip select should we use)
CS_str = extract_programmer_param("cs");
CS_str = extract_programmer_param_str("cs");
if (CS_str) {
CS_number = CS_str[0] - '0';
free(CS_str);
@ -562,7 +562,7 @@ static int ni845x_spi_init(void)
}
}
voltage = extract_programmer_param("voltage");
voltage = extract_programmer_param_str("voltage");
if (voltage != NULL) {
requested_io_voltage_mV = parse_voltage(voltage);
free(voltage);
@ -570,9 +570,9 @@ static int ni845x_spi_init(void)
return 1;
}
serial_number = extract_programmer_param("serial");
serial_number = extract_programmer_param_str("serial");
speed_str = extract_programmer_param("spispeed");
speed_str = extract_programmer_param_str("spispeed");
if (speed_str) {
spi_speed_KHz = strtoul(speed_str, &endptr, 0);
if (*endptr) {
@ -585,7 +585,7 @@ static int ni845x_spi_init(void)
}
ignore_io_voltage_limits = false;
ignore_io_voltage_limits_str = extract_programmer_param("ignore_io_voltage_limits");
ignore_io_voltage_limits_str = extract_programmer_param_str("ignore_io_voltage_limits");
if (ignore_io_voltage_limits_str
&& strcmp(ignore_io_voltage_limits_str, "yes") == 0) {
ignore_io_voltage_limits = true;