diff options
-rw-r--r-- | mediatek_i2c_spi.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/mediatek_i2c_spi.c b/mediatek_i2c_spi.c index c59f3c85..e8c77ffb 100644 --- a/mediatek_i2c_spi.c +++ b/mediatek_i2c_spi.c @@ -439,18 +439,6 @@ static int mediatek_send_command(const struct flashctx *flash, return 0; } -static const struct spi_master spi_master_i2c_mediatek = { - .max_data_read = I2C_SMBUS_BLOCK_MAX, - // Leave room for 1-byte command and up to a 4-byte address. - .max_data_write = I2C_SMBUS_BLOCK_MAX - 5, - .command = mediatek_send_command, - .multicommand = default_spi_send_multicommand, - .read = default_spi_read, - .write_256 = default_spi_write_256, - .write_aai = default_spi_write_aai, - .probe_opcode = default_spi_probe_opcode, -}; - static int mediatek_shutdown(void *data) { int ret = 0; @@ -463,6 +451,18 @@ static int mediatek_shutdown(void *data) return ret; } +static const struct spi_master spi_master_i2c_mediatek = { + .max_data_read = I2C_SMBUS_BLOCK_MAX, + // Leave room for 1-byte command and up to a 4-byte address. + .max_data_write = I2C_SMBUS_BLOCK_MAX - 5, + .command = mediatek_send_command, + .multicommand = default_spi_send_multicommand, + .read = default_spi_read, + .write_256 = default_spi_write_256, + .write_aai = default_spi_write_aai, + .probe_opcode = default_spi_probe_opcode, +}; + static int mediatek_init(void) { int ret; |