1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-27 15:12:36 +02:00

tests/parade_lspcon.c: Replace spaces with tabs

Spaces were accidentally introduced in previous commit, replace
with tabs as it should be.

Change-Id: Ic3a7d3004b8358953917a6666bcf8f1cdade02fd
Signed-off-by: Anastasia Klimchuk <aklm@chromium.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/67643
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Singer <felixsinger@posteo.net>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Anastasia Klimchuk 2022-09-14 12:23:54 +10:00
parent 1f65e9029b
commit 5d05a2811e

View File

@ -19,19 +19,19 @@
/* Same macros as in parade_lspcon.c programmer. */
/* FIXME(aklm): should driver register maps be defined in `include/drivers/` for sharing with tests? */
#define REGISTER_ADDRESS 0x4a
#define SPISTATUS 0x9e
#define SPISTATUS_SECTOR_ERASE_FINISHED 0
#define SWSPICTL 0x93
#define SWSPICTL_ENABLE_READBACK 0x8
#define SWSPI_RDATA 0x91
#define REGISTER_ADDRESS 0x4a
#define SPISTATUS 0x9e
#define SPISTATUS_SECTOR_ERASE_FINISHED 0
#define SWSPICTL 0x93
#define SWSPICTL_ENABLE_READBACK 0x8
#define SWSPI_RDATA 0x91
/* Macros for test run. */
#define DATA_TO_READ 0
#define MAX_REG_BUF_LEN 2
#define DATA_TO_READ 0
#define MAX_REG_BUF_LEN 2
struct parade_lspcon_io_state {
unsigned long addr; /* Address to read and write */
uint8_t reg_buf[MAX_REG_BUF_LEN]; /* Last value written to the register address */
unsigned long addr; /* Address to read and write */
uint8_t reg_buf[MAX_REG_BUF_LEN]; /* Last value written to the register address */
};
static int parade_lspcon_ioctl(void *state, int fd, unsigned long request, va_list args)