mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 23:22:37 +02:00
realtek_mst_i2c_spi.c: Fix indentation
BUG=none BRANCH=none TEST=builds Signed-off-by: Shiyu Sun <sshiyu@chromium.org> Change-Id: I730882c97926dfbe8b68b286c3805d6470993da8 Reviewed-on: https://review.coreboot.org/c/flashrom/+/49784 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
554a01f9a6
commit
963a2917d0
@ -26,7 +26,7 @@
|
|||||||
#include "i2c_helper.h"
|
#include "i2c_helper.h"
|
||||||
|
|
||||||
|
|
||||||
#define MCU_I2C_SLAVE_ADDR 0x94
|
#define MCU_I2C_SLAVE_ADDR 0x94
|
||||||
#define REGISTER_ADDRESS (0x94 >> 1)
|
#define REGISTER_ADDRESS (0x94 >> 1)
|
||||||
#define PAGE_SIZE 128
|
#define PAGE_SIZE 128
|
||||||
#define MAX_SPI_WAIT_RETRIES 1000
|
#define MAX_SPI_WAIT_RETRIES 1000
|
||||||
@ -78,7 +78,7 @@ static int get_fd_from_context(const struct flashctx *flash)
|
|||||||
msg_perr("Unable to extract fd from flash context.\n");
|
msg_perr("Unable to extract fd from flash context.\n");
|
||||||
return SPI_GENERIC_ERROR;
|
return SPI_GENERIC_ERROR;
|
||||||
}
|
}
|
||||||
const struct realtek_mst_i2c_spi_data *data =
|
const struct realtek_mst_i2c_spi_data *data =
|
||||||
(const struct realtek_mst_i2c_spi_data *)flash->mst->spi.data;
|
(const struct realtek_mst_i2c_spi_data *)flash->mst->spi.data;
|
||||||
|
|
||||||
return data->fd;
|
return data->fd;
|
||||||
@ -429,7 +429,7 @@ static struct spi_master spi_master_i2c_realtek_mst = {
|
|||||||
static int realtek_mst_i2c_spi_shutdown(void *data)
|
static int realtek_mst_i2c_spi_shutdown(void *data)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
struct realtek_mst_i2c_spi_data *realtek_mst_data =
|
struct realtek_mst_i2c_spi_data *realtek_mst_data =
|
||||||
(struct realtek_mst_i2c_spi_data *)data;
|
(struct realtek_mst_i2c_spi_data *)data;
|
||||||
int fd = realtek_mst_data->fd;
|
int fd = realtek_mst_data->fd;
|
||||||
if (realtek_mst_data->reset) {
|
if (realtek_mst_data->reset) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user