aboutsummaryrefslogtreecommitdiffstats
path: root/mediatek_i2c_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'mediatek_i2c_spi.c')
-rw-r--r--mediatek_i2c_spi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mediatek_i2c_spi.c b/mediatek_i2c_spi.c
index c460da18..39a9cea9 100644
--- a/mediatek_i2c_spi.c
+++ b/mediatek_i2c_spi.c
@@ -470,7 +470,7 @@ static int get_params(const struct programmer_cfg *cfg, bool *allow_brick)
int ret = 0;
*allow_brick = false; /* Default behaviour is to bail. */
- brick_str = extract_programmer_param_str(NULL, "allow_brick");
+ brick_str = extract_programmer_param_str(cfg, "allow_brick");
if (brick_str) {
if (!strcmp(brick_str, "yes")) {
*allow_brick = true;
@@ -504,7 +504,7 @@ static int mediatek_init(const struct programmer_cfg *cfg)
return SPI_GENERIC_ERROR;
}
- int fd = i2c_open_from_programmer_params(ISP_PORT, 0);
+ int fd = i2c_open_from_programmer_params(cfg, ISP_PORT, 0);
if (fd < 0) {
msg_perr("Failed to open i2c\n");
return fd;