summaryrefslogtreecommitdiff
path: root/src/soc/qualcomm/ipq40xx/spi.c
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2024-03-23 15:13:55 +0100
committerElyes Haouas <ehaouas@noos.fr>2024-03-30 07:44:06 +0000
commit44772b29b09fcebe2bd1b392c9dd2c652b3f64d2 (patch)
treeff818a2e13ee2f506c704c9769b64d76ca63de20 /src/soc/qualcomm/ipq40xx/spi.c
parent43225cbdfadca1054d95da901e23c53aa363272a (diff)
soc/qualcomm: Remove blank lines before '}' and after '{'
Change-Id: If2c2138ed3dc437b924297330805caa8c357853d Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/81460 Reviewed-by: Eric Lai <ericllai@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/qualcomm/ipq40xx/spi.c')
-rw-r--r--src/soc/qualcomm/ipq40xx/spi.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/soc/qualcomm/ipq40xx/spi.c b/src/soc/qualcomm/ipq40xx/spi.c
index ab8f53016f..cf5c214f32 100644
--- a/src/soc/qualcomm/ipq40xx/spi.c
+++ b/src/soc/qualcomm/ipq40xx/spi.c
@@ -74,10 +74,8 @@ static int check_bit_state(void *reg_addr, int mask,
*/
static int check_qup_state_valid(struct ipq_spi_slave *ds)
{
-
return check_bit_state(ds->regs->qup_state, QUP_STATE_VALID_MASK,
QUP_STATE_VALID, 1);
-
}
/*
@@ -297,7 +295,6 @@ static void write_force_cs(const struct spi_slave *slave, int assert)
else
clrsetbits32(ds->regs->io_control,
SPI_IO_CTRL_FORCE_CS_MSK, SPI_IO_CTRL_FORCE_CS_DIS);
-
}
/*
@@ -354,7 +351,6 @@ static int check_fifo_status(void *reg_addr)
static void enable_io_config(struct ipq_spi_slave *ds,
uint32_t write_cnt, uint32_t read_cnt)
{
-
if (write_cnt) {
clrsetbits32(ds->regs->qup_config,
QUP_CONF_OUTPUT_MSK, QUP_CONF_OUTPUT_ENA);
@@ -370,7 +366,6 @@ static void enable_io_config(struct ipq_spi_slave *ds,
clrsetbits32(ds->regs->qup_config,
QUP_CONF_INPUT_MSK, QUP_CONF_NO_INPUT);
}
-
}
/*
@@ -486,7 +481,6 @@ static int __blsp_spi_write(struct ipq_spi_slave *ds, const u8 *cmd_buffer,
* to get the actual data on the subsequent read cycle that happens
*/
while (write_len || read_len) {
-
ret = check_fifo_status(ds->regs->qup_operational);
if (ret != SUCCESS)
goto out;