* [PATCH] mtd: dataflash: Remove use of tx_dma
@ 2014-10-29 12:27 Mark Brown
2014-11-05 20:57 ` Brian Norris
0 siblings, 1 reply; 2+ messages in thread
From: Mark Brown @ 2014-10-29 12:27 UTC (permalink / raw)
To: David Woodhouse, Brian Norris; +Cc: Mark Brown, linux-mtd
We are trying to remove the legacy tx_dma and rx_dma fields from the
spi_transfer structure. Currently dataflash uses tx_dma but only to make
sure that it's set to 0 so we can remove this use by replacing with a
zero initialisation of the entire spi_transfer struct.
Signed-off-by: Mark Brown <broonie@kernel.org>
---
drivers/mtd/devices/mtd_dataflash.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/devices/mtd_dataflash.c b/drivers/mtd/devices/mtd_dataflash.c
index dd22ce2cc9ad..0099aba72a8b 100644
--- a/drivers/mtd/devices/mtd_dataflash.c
+++ b/drivers/mtd/devices/mtd_dataflash.c
@@ -149,7 +149,7 @@ static int dataflash_erase(struct mtd_info *mtd, struct erase_info *instr)
{
struct dataflash *priv = mtd->priv;
struct spi_device *spi = priv->spi;
- struct spi_transfer x = { .tx_dma = 0, };
+ struct spi_transfer x = { };
struct spi_message msg;
unsigned blocksize = priv->page_size << 3;
uint8_t *command;
@@ -235,7 +235,7 @@ static int dataflash_read(struct mtd_info *mtd, loff_t from, size_t len,
size_t *retlen, u_char *buf)
{
struct dataflash *priv = mtd->priv;
- struct spi_transfer x[2] = { { .tx_dma = 0, }, };
+ struct spi_transfer x[2] = { };
struct spi_message msg;
unsigned int addr;
uint8_t *command;
@@ -301,7 +301,7 @@ static int dataflash_write(struct mtd_info *mtd, loff_t to, size_t len,
{
struct dataflash *priv = mtd->priv;
struct spi_device *spi = priv->spi;
- struct spi_transfer x[2] = { { .tx_dma = 0, }, };
+ struct spi_transfer x[2] = { };
struct spi_message msg;
unsigned int pageaddr, addr, offset, writelen;
size_t remaining = len;
--
2.1.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mtd: dataflash: Remove use of tx_dma
2014-10-29 12:27 [PATCH] mtd: dataflash: Remove use of tx_dma Mark Brown
@ 2014-11-05 20:57 ` Brian Norris
0 siblings, 0 replies; 2+ messages in thread
From: Brian Norris @ 2014-11-05 20:57 UTC (permalink / raw)
To: Mark Brown; +Cc: linux-mtd, David Woodhouse
On Wed, Oct 29, 2014 at 12:27:32PM +0000, Mark Brown wrote:
> We are trying to remove the legacy tx_dma and rx_dma fields from the
> spi_transfer structure. Currently dataflash uses tx_dma but only to make
> sure that it's set to 0 so we can remove this use by replacing with a
> zero initialisation of the entire spi_transfer struct.
>
> Signed-off-by: Mark Brown <broonie@kernel.org>
Applied to l2-mtd.git. Thanks!
Brian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-05 20:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-29 12:27 [PATCH] mtd: dataflash: Remove use of tx_dma Mark Brown
2014-11-05 20:57 ` Brian Norris
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox