Skip to content

Commit

Permalink
spi-nand/spi-mem DTR support
Browse files Browse the repository at this point in the history
Merge series from Miquel Raynal <miquel.raynal@bootlin.com>:

Here is a (big) series supposed to bring DTR support in SPI-NAND.
  • Loading branch information
Mark Brown committed Jan 14, 2025
2 parents 40ba3c9 + e896c04 commit 9a8afbe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/spi/spi-amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,6 @@ static int amd_spi_exec_mem_op(struct spi_mem *mem,
const struct spi_mem_op *op)
{
struct amd_spi *amd_spi;
int ret;

amd_spi = spi_controller_get_devdata(mem->spi->controller);

Expand All @@ -689,10 +688,10 @@ static int amd_spi_exec_mem_op(struct spi_mem *mem,
amd_spi_mem_data_out(amd_spi, op);
break;
default:
ret = -EOPNOTSUPP;
return -EOPNOTSUPP;
}

return ret;
return 0;
}

static const struct spi_controller_mem_ops amd_spi_mem_ops = {
Expand Down

0 comments on commit 9a8afbe

Please sign in to comment.