diff options
Diffstat (limited to 'mediatek_i2c_spi.c')
-rw-r--r-- | mediatek_i2c_spi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mediatek_i2c_spi.c b/mediatek_i2c_spi.c index 4133edbc4..c460da187 100644 --- a/mediatek_i2c_spi.c +++ b/mediatek_i2c_spi.c @@ -464,7 +464,7 @@ static const struct spi_master spi_master_i2c_mediatek = { .probe_opcode = default_spi_probe_opcode, }; -static int get_params(bool *allow_brick) +static int get_params(const struct programmer_cfg *cfg, bool *allow_brick) { char *brick_str = NULL; int ret = 0; @@ -484,12 +484,12 @@ static int get_params(bool *allow_brick) return ret; } -static int mediatek_init(void) +static int mediatek_init(const struct programmer_cfg *cfg) { int ret; bool allow_brick; - if (get_params(&allow_brick)) + if (get_params(cfg, &allow_brick)) return SPI_GENERIC_ERROR; /* |